othree / eregex.vim

Perl/Ruby style regexp notation for Vim
http://www.vim.org/scripts/script.php?script_id=3282
214 stars 18 forks source link

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

Open melyux opened 1 year ago

melyux commented 1 year ago

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?

othree commented 1 year ago

Use \1, just like the perlre syntax