in reply to Re^3: You won't believe what this regular expression does!
in thread You won't believe what this regular expression does!
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".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: You won't believe what this regular expression does!
by salva (Canon) on Feb 26, 2021 at 11:55 UTC | |
by haukex (Archbishop) on Feb 26, 2021 at 13:16 UTC | |
by LanX (Saint) on Feb 26, 2021 at 13:17 UTC | |
by salva (Canon) on Feb 26, 2021 at 14:23 UTC |
In Section
Seekers of Perl Wisdom