$_ = "This is a teeeext for testting"; /(?<char>e*)/ and print "'$+{ch +ar}' is matched pattern at $-[0]\n";
Outputs:
'' is matched pattern at 0
e* matches at the beginning of the string, try e+
In reply to Re: Greedy modifier found to be working non-greedy in a named group
by tybalt89
in thread Greedy modifier found to be working non-greedy in a named group
by rkabhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |