replacement of text using Notepad ++

You can run a python script within the PythonScript plugin.

If it is not yet installed, follow this guide

Create a script (Plugins >> PythonScript >> New Script)

Copy this code and save the file (for example calculate.py):

import re

counter = -1
def calculate(match):
    global counter
    counter += 1
    return ' ' + str(counter)

editor.rereplace('(?<=# Model Data Entry)\h*\d*', calculate)
  • Open the file you want to change
  • Run the script (Plugins >> PythonScript >> Scripts >> calculate)
  • Done

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here