How to increment group numbers in a settings file?
Notepad++ solution
- Add the Python Script plugin in Notepad++
- After adding it, click Plugins -> Python Script -> New Script
- Give the script a name, use the following code:
import re
number = -1
def calculate(match):
global number
number = int(match.group(0))
if number >= 150:
number += 1
return str(number)
editor.rereplace('(?<=group)\d+', calculate)
- Save the script. Open your file.
- Click Plugins -> Python Script -> Scripts. Select the script you just created.
- When the script finishes running, add the new group 150.