Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Remove all non-numeric characters except for an optional negative sign (-)

by pme (Prior)
on Sep 09, 2016 at 12:57 UTC ( #1171458=note: print w/replies, xml ) Need Help??


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

Hi AM,

/-?\d+/
can do the job. '?' is for zero or one occurrence. Update: Greeting is changed.
  • Comment on Re: Remove all non-numeric characters except for an optional negative sign (-)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2019-12-09 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?