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.