8
2
In Notepad++, I want to perform a find-and-replace, providing a variable in the 'Replace with' field, which references a match from the 'Find what' field. Any ideas?
I tried supplying (find) foo (\w) bar
(replace) foo baz ($1) bar qux
. That didn't work.
4Try \1 instead. – EBGreen – 2012-02-07T20:15:35.313
1Easy rep there if someone wants to write up a nice answer. I don't use Notepad++ so I didn't make it an answer. I do however use google and figured the OP would appreciate something that would solve the issue even if it wasn't a proper answer. – EBGreen – 2012-02-07T21:46:39.740