Find and replace with regex
Posted: Fri Sep 04, 2020 6:28 pm
Whereas I found the checkbox to search using regex, replaced string doesn't seem to respect the flag
For example:
Replace
by
with
results in:
instead of expected
Should I use other token than \1 (for group1)? (I also tried with $1)
For example:
Replace
Code: Select all
range::foo\((.*)\)
Code: Select all
bar(begin(\1), end(\1))
Code: Select all
range::foo(var)
Code: Select all
bar(begin(\1), end(\1))
Code: Select all
bar(begin(var), end(var))