eregex.vim icon indicating copy to clipboard operation
eregex.vim copied to clipboard

No documentation on how to reference a capture group in the replace

Open melyux opened this issue 3 years ago • 1 comments

Using references to capture groups in the replace like $1 doesn't work. I thought this was supposed to be Perl regex compatible. How is this supposed to work?

melyux avatar Nov 22 '22 06:11 melyux

Use \1, just like the perlre syntax

othree avatar Nov 22 '22 08:11 othree