Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 having an uproarious good time at the Monastery: (5)
As of 2020-10-20 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (209 votes). Check out past polls.

    Notices?