Wednesday, October 3, 2012

Re: [Rephrased] Problem with a regular expression in Vim

On Wed, Oct 03, 2012 at 10:04:26AM EDT, Xell Liu wrote:

[..]

>
> (According to Jones, due to the mechanism of regex engine, it's highly
> improbable...)

Hehe.. Don't take my word for it..

Aside from attempting to clarify your initial post, I tried to restate
the problem in such terms: "Is there something in Vim's regex syntax
that would force it to consume zero-length matches?" In this particular
case, forcing the engine to jump to the next '==' delimiter instead of
what I believe is the behavior that is causing you grief.

More of a hunch than something based on a solid understanding of Vim's
regex engine, I can assure you..

I also thought that reasoning in terms of "..." double-quoted strings
might help, since it's a more common problem than strings delimited by
pairs of equal signs: provided the two problems are indeed equivalent,
it's both easier to describe and more likely to have been solved by
someone more knowledgeable than myself.

CJ

--
Hi! My name is bobby...

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