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:
$_ = "aaab"; print "/(?>[ab]+)(?>b+)/ matches $_\n" if /(?>[ab]+)(?>b+)/; print "/(?>[ab]+b+)/ matches $_\n" if /(?>[ab]+b+)/;
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 reply to Re(4): Possessive Quantifiers
by Arien
in thread Possessive Quantifiers
by Ferret
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |