Monday, August 30, 2010

Vim RE and lazy operator

Hi there,
is there a lazy operator for RE in Vim?

I mean, I have the following code:

<li>Support: <a href="email@example.com"
title="email@example.com">email@example.com</a></li>

and I tried to select just the text inside double quotes for
substitutions using: %s/"\(.\+@.\+\)"/\1sometext/g

Obviously, that select the whole text inside the first " on the row
till the last one and not the second one as I would.
Since I am just learning RE, I was wondering if does exist a lazy
operator for Vim RE.

Thank you all.

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