Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
more useful options
 
PerlMonks  

Re^2: How to strip non-numeric values from string?

by murugaperumal (Sexton)
on Mar 20, 2010 at 04:20 UTC ( #829760=note: print w/ replies, xml ) Need Help??


in reply to Re: How to strip non-numeric values from string?
in thread How to strip non-numeric values from string?

use strict; use warnings; for (qw(12.34 0.05lb 999)) { if($_=~/([0-9.]+)/) { print "$1\n"; } }


Comment on Re^2: How to strip non-numeric values from string?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://829760]
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: (8)
As of 2014-04-20 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls