💻 Software
Notepad++ regex Replace, using match variables
Fresh6 days ago
Mar 15, 202633085 viewsConfidence Score0%
0%
Problem
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) (replace) . That didn't work.
Error Output
foo (\w) bar
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Notepad++ regex Replace, using match variables
Low Risk
Notepad++ uses standard POSIX regular expressions. As such, backreferences should use the slash instead of the dollar-sign:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix