The greedy operators still implement a leftmost-longest strategy. That means that the leftmost match will win even if you find a longer match later.
e* can match zero e. The leftmost place where you can match zero e is at the start of the string.
In reply to Re^3: Greedy modifier found to be working non-greedy in a named group
by Corion
in thread Greedy modifier found to be working non-greedy in a named group
by rkabhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |