Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: You won't believe what this regular expression does!by haukex (Archbishop) |
on Feb 26, 2021 at 08:26 UTC ( [id://11128821]=note: print w/replies, xml ) | Need Help?? |
But please note the second fOO Yes, good point! I think the main question is what the intent of the regex is. If it's "replace any o's at the end of each line", then the better solution is, as you said, /o+$/, and using o* is the "mistake".
In Section
Seekers of Perl Wisdom
|
|