Notepad++'s manual is rather vague on the special character for numerical used in extended search mode.
It says: \d### – Decimal value (between 000 and 255)
but literally entering "\d###" doesn't match anything.
What I am trying to do is to replace
if VarA == 12
VarB = 1
with
if VarA == 12
Var12=1
VarB=1
Best Answer
I was just looking for an answer to this question. After taking a look on the NP++ wiki, I don't think
\d
is matching what we want it to match.It's not matching a regular numeric character, it's matching a byte code. Follow the
\d
with a 3-digit number and it will match the corresponding ASCII character.In other words,
\d032
matches the space character,\d033
matches an exclamation mark and so on. See here for a list of codes.Unfortunately, this means you can't just match "any digit" using the extended options, you'll have to use the regular expressions and find a way around the new line issue.