We don't bite newbies here... much | |
PerlMonks |
Re: Numbers only in a stringby socketdave (Curate) |
on Sep 08, 2005 at 16:01 UTC ( [id://490249]=note: print w/replies, xml ) | Need Help?? |
$phone =~ s/\D|^1//g;
Same as davido and sk, but also strips a leading 1 from the number.
In Section
Seekers of Perl Wisdom
|
|