go ahead... be a heretic | |
PerlMonks |
Re: Remove all non-numeric characters except for an optional negative sign (-)by kennethk (Abbot) |
on Sep 09, 2016 at 17:00 UTC ( [id://1171474]=note: print w/replies, xml ) | Need Help?? |
choroba and pme answered your question. For the future, this is documented in Matching repetitions from perlretut and Quantifiers from perlre. Are you sure you'll never care about cases like +5, 1.2, and 1E10? #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|