in reply to Re^4: You won't believe what this regular expression does!
in thread You won't believe what this regular expression does!
No, the intent is to ensure that the string ends in just one o, no less, no more than one.
In real life, those lines were paths, and I wanted all of then ending in a single slash. For instance:
/foo --> /foo/ /foo/ --> /foo/ /foo////// --> /foo/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: You won't believe what this regular expression does!
by haukex (Archbishop) on Feb 26, 2021 at 13:16 UTC | |
Re^6: You won't believe what this regular expression does!
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