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

Re: Numbers only in a string

by trammell (Priest)
on Sep 08, 2005 at 16:26 UTC ( [id://490260]=note: print w/replies, xml ) Need Help??


in reply to Numbers only in a string

my $s = '1-(800)-223-5555'; (my $n = $s) =~ y/0-9//cd;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found