Sunday, September 16, 2012

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

> Your (very magic) zero-width item should be `@<=', not `\@=':
>
> :echo matchstr('123abc','\v(123)@<=abc')
>
> abc

Ah, thank you, now it works!

I think I tried that but I kept the backslash before `@` and that produced empty match.

Thanks

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: