Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Strip non-numeric

by rbc (Curate)
on Jan 13, 2003 at 22:52 UTC ( #226639=note: print w/ replies, xml ) Need Help??


in reply to Strip non-numeric

try ...

$scalar = "a1b2"; $scalar =~ s/\D//g; print "$scalar\n";


Comment on Re: Strip non-numeric
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2015-07-31 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls