Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Remove all non-numeric characters except for an optional negative sign (-)

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1171474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-28 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found