Sunday, September 16, 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

P.S.: This is my second attempt to post this question into the mailing list, because it looks like the first one was not successful. I apology if you get it twice.

--
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: