Ответ на сообщение «Re: Vim RE and lazy operator», присланное в 22:10:16 30 августа 2010, Понедельник, отправитель Christian Brabandt:
The problem is that you can have more then one quote before @. If there is more
then one quote then you will capture everything starting from the first quote,
test your regex with original string provided by caruso_g, but add the
attribute
``class="Test"'' to <li> tag, it will return
Test">Support: <a href="[email protected]
This is not the desired behavior.
Текст сообщения:
> Hi ZyX!
>
> On Mo, 30 Aug 2010, ZyX wrote:
> > You are sure? Quick test:
> > :echo matchstr('"", "a...@def", ""', '"\zs.\...@.\{-}\ze"')
> >
> > should echo ``...@def'', but echoes ``", "a...@def''.
>
> I am not sure, what you tested, but this works as expected:
> :echo matchstr('"a...@def"', '"\zs.\...@.\{-}\ze"')
>
> a...@def
>
>
> regards,
> Christian
signature.asc
Description: This is a digitally signed message part.
