Backreference format in Winmerge regex

473 views Asked by At

I'm trying to search-and-replace wit a regex in a file in Winmerge, however I can't find the right format for making a backreference.

For example I search (\w+), and I tried to replace by "$1", "\1", "\\1", "${1}", but neither of those works.

Any idea?

Thanks in advance,

2

There are 2 answers

1
karthik manchala On BEST ANSWER

Winmerge does not support replacing with regex. You can only use regex as find filters, which are facilitated with PCRE.

0
frenchone On

format is \1 and you need winmerge 2.15.2

https://sourceforge.net/p/winmerge/bugs/2172/