Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Winmerge 的文件中搜索和替换正则表达式,但是我找不到正确的格式来进行反向引用。
例如,我搜索(\w+),并尝试用"$1", "\1", "\\1",替换"${1}",但这些都不起作用。
(\w+)
"$1"
"\1"
"\\1"
"${1}"
任何想法?
提前致谢,
格式是 \1,你需要 winmerge 2.15.2
https://sourceforge.net/p/winmerge/bugs/2172/
Winmerge 不支持用正则表达式替换。您只能使用正则表达式作为查找过滤器,这由 PCRE 提供了便利。