Monday, August 30, 2010

Re: Vim RE and lazy operator

> You mean, non-greedy? For part after @ you can use non-greedy \{-1,} instead of
> \+, but this will not help you with part before @. Here you must just replace
> dot with [^"@].

This one should work too:
s/"\zs.\{-}@.\{-}\ze"/.../g

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

Post a Comment