Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Basic Regular expressionby tweetiepooh (Hermit) |
on Feb 09, 2017 at 16:48 UTC ( [id://1181551]=note: print w/replies, xml ) | Need Help?? |
The answer you get is what is expected. What do you think the regex reads like? Start then capture 1 or more character upto "e" or "r" captured then capture anything left to end. Remember the match is greedy so matches the "r" in the option rather than the "e".
In Section
Seekers of Perl Wisdom
|
|