Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by pme (Monsignor)
on Sep 09, 2016 at 12:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1171458]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2026-04-15 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.