Thursday, March 31, 2011

Re: Regular Expression Help

On Fri, Apr 1, 2011 at 11:53 AM, Terence Monteiro wrote:
/\(\w\+\)\s*=\s*\(\(\\'\|[^']\)*\)'

You'll need a ' after the \s*. Depending on whether you want to capture the single quotes:

\(\w\+\)\s*=\s*'\(\\'\|[^']\)*'

Regards, Terence.

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