> what would the regex be for stripping out non-numeric characters from
> a string?  I am trying to format phone numers in a standard way, so i
> want to strip out all the extras people enter like . - ( ) [space]
> 
> any help appreciated!
> 
> thanks,
> 
> rory

As Japhy suggested for a similar question. Use tr/// :

        $x = "sadf24sad234zsd234";
        $x =~ tr/0-9//cd;

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to