in reply to Re: Is there a way to allow consecutive zero-length matches without using pos()?
in thread Is there a way to allow consecutive zero-length matches without using pos()?
That's a great guess, but the usual culprit in my code is /\G(?=...)/ . JavaScript has some parsing quirks, and zero-width assertions help to identify the context a token is in. For example, "function" is a keyword but now may also be a property of an object. I'm trying to avoid analyzing the higher-level syntax just to tokenize it.
I'm working on a simple test case now, which is turning out more complicated than I thought. I'll post it when I get it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Is there a way to allow consecutive zero-length matches without using pos()?
by ikegami (Patriarch) on Nov 08, 2017 at 08:05 UTC | |
by jsm (Novice) on Nov 08, 2017 at 20:43 UTC |