On 01/09/2012 10:21 AM, Karthick Gururaj wrote:
On Mon, Jan 9, 2012 at 5:38 PM, Fernando Basso
<[email protected]>  wrote:
Say I have:

    "a" more thext "b"

Then, /"[^"]*" will find two separate strings. However, what if I want
not to include the quotes? I have tried:

    /"\zs[^"]*\ze"

But it becomes too greey, and
.. I think greediness is not the culprit. You have specified [^"], so
it is not possible to do a greedy match... The issue is \ze, the match
stops early. So,
First match is:
a
Second is:
  more thext
Third is:
b

Note that more thext is also surrounded by quotes.
It makes sense, indeed.

If you do not want quotes to be considered as part of the match, it
should be for some reason - what is that?
I want to highlight text inside quotes, but not the quotes themselves.

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

Reply via email to