Increment number?

Tool for Search and Replace across multiple files.
Post Reply
cubilas
Posts: 3
Joined: Mon Jan 31, 2022 9:07 pm

Increment number?

Post by cubilas »

Hello!

I am trying to find all instances of a string (<Instrument number="1">) and increment the number in quotes by another number N.

Example :
if N = 30 then \
<Instrument number="1"> will be replaced with <Instrument number="31">
<Instrument number="2"> will be replaced with <Instrument number="32">

Any help would be great, thanks!
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Increment number?

Post by DigitalVolcano »

Sorry, there aren't any maths functions as of version 3.1, so I can't think of a way of doing this!
Post Reply