Saturday, September 15, 2012

Why matchstr returns also text matched by zero-width pattern?

Dear vim users,

I do not understand why output of this command: `echo
matchstr('123abc','\v(123)\@=abc')` is `123abc`. I'm using zero-width
pattern, so I would like to get just `abc`. What am i doing wrong?

Thank you very much!

Martin Jiricka

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: