laziness, impatience, and hubris | |
PerlMonks |
Re^3: March a regex using split functionby Laurent_R (Canon) |
on Sep 13, 2017 at 06:14 UTC ( [id://1199262]=note: print w/replies, xml ) | Need Help?? |
You could probably use something like this:
But AnomalousMonk's proposal is arguably more readable. Also, the \s* makes is possible to cope with possible variations in the number of spaces between FREE: and the value. Perhaps you don't need it if you can be absolutely sure that there will always be one and only one space there, but can you be that sure?
In Section
Seekers of Perl Wisdom
|
|