more useful options | |
PerlMonks |
Re: Must do regex range quantifier { } as a greedyby Corion (Patriarch) |
on Jan 17, 2022 at 08:39 UTC ( [id://11140517]=note: print w/replies, xml ) | Need Help?? |
Using Regexp::Debugger, you can see that the regexp immediately matches at the start of the string, because aa (followed by zero b) matches. If you want to match the aab, you can push the match to the right by preprending .*:
In Section
Seekers of Perl Wisdom
|
|