![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re(4): Possessive Quantifiersby Arien (Pilgrim) |
on Aug 18, 2002 at 10:45 UTC ( [id://190971]=note: print w/replies, xml ) | Need Help?? |
I'm guessing that (?>a*b*) is equivalent to Java's a*+b*+. The equivalent to Java's a*+b*+ would be (?>a*)(?>b*). In this case that wouldn't make a difference of course, but it would in situations like this one:
What about (?>a*(b|c)d*)? Can that be expressed in Java at all? How about (a*(b|c)d*){1}+? (Yeah, it's ugly...) — Arien
In Section
Seekers of Perl Wisdom
|
|