I'm not sure exactly what that is doing (I'm just learning about character
classes), but if all you want to do is remove digits, try this:

$string =~ s/\d//g;  #substitute all digits globally with nothing

-----Original Message-----
From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 4:38 PM
To: [EMAIL PROTECTED]
Subject: Get rid of digits...


Hey all,

Just wondering what my best way would be to go about stripping all
digits from my string.  So far I have the follwoing...

$string = "08 852365 21 Hello world!";

$string =~ s/[.*\d\s]//g;

What does this do exactly?

Regards,

Dan

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


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

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

Reply via email to