On Mon, Dec 25, 2006 at 12:28:01PM -0800, Randal L. Schwartz
wrote:
> But it occurred to me the other day that just like
"?" following a quantifier
> (?, *, +, , {m,n}) was formerly illegal, and
therefore used to introduce
> the notion of laziness, that "+" is likewise
illegal. How about making it so
> that any quantifier (including lazily modified
quantifers) followed by "+"
> means "never backtrack"?
> ...
> Same functionality, just a much nicer notation.
"+" means "once I've
> committed, that's it!".
Are you asking for the same thing as the Java
"possessive quantifiers"?
They use "+" to mean this already.
Cheers,
mark
--
mark mielke.cc / markm ncf.ca / markm nortel.com __________________________
. . _ ._ . . .__ . . ._. .__ . . . .__ |
Neighbourhood Coder
|/| |_| |_| |/ |_ |/| | |_ | |/ |_ |
| | | | | | |__ . | | .|. |__ |__ | |__ |
Ottawa, Ontario, Canada
One ring to rule them all, one ring to find them, one ring
to bring them all
and in the darkness bind them...
http://mark.mielke.cc/
|