Is it possible in Notepad++ to find a number, then replace it with increment value?
For example,
find id number: regex \\((\\d+)
It is not possible with just a regex, but you can use a python script inside Notepad++.
Here are the steps:
Code:
def increment_after_openparen(match):
return "({0}".format(str(int(match.group(1))+31))
editor.rereplace(r'\((\d+)', increment_after_openparen)
Then, just evoke this 'increment_numbers' script.
Addendum to the accepted answer. Posting this as an answer due to insufficient rep
I noted that the newer version of Notepad ++ is not compatible with this python script. I installed notepad++ 6.6.9 and now the Python menu tab shows up under plugins.