[Solved] Notepad++ Removing spaces between certain words


I would just directly match the ID = num expressions:

Find:    \bID = (\d+)\b
Replace: ID=$1

Demo

Note that if you are not sure whether there would be whitespace on both sides of the = sign, you could use \bID\s*=\s*(\d+)\b. However, this would match every ID line, even those which are already in the correct format.

0

solved Notepad++ Removing spaces between certain words