Monday, January 9, 2012

Match string - quotes excluded

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

/"\zs[^"]\{-}\ze"

Doesn't work either.

For matching multiple lines, it is not working either.

"\zs[^"]\_.\{-}\ze"

What am I doing wrong?

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