Closed GoogleCodeExporter closed 9 years ago
You are using a backreference before the () group that defines it contents,
that doesn't work. I'm surprised this works in the backtracking engine, that
might be called a bug.
Original comment by brammool...@gmail.com
on 30 Jul 2014 at 9:42
Thanks. In future, should regexs be re-ordered such that backreferences always
come after capture groups?
Original comment by timothy....@ucdconnect.ie
on 30 Jul 2014 at 9:48
I based that regex on the information in :help /\@<= and the example:
\1\@<=,\([a-z]\+\) ",abc" in "abc,abc"
When it worked, I accepted it and moved on. :-)
Original comment by barry.ar...@gmail.com
on 30 Jul 2014 at 10:01
Thanks for the pointer to the help. I will add a note there that this only
works with the old regexp engine, and show how to do it with \zs instead.
Original comment by brammool...@gmail.com
on 30 Jul 2014 at 11:04
Thanks for the \zs\ze version. I have added that to VimRegexTutor.
Original comment by barry.ar...@gmail.com
on 30 Jul 2014 at 11:15
Original issue reported on code.google.com by
timothy....@ucdconnect.ie
on 29 Jul 2014 at 7:19