Okay, looking at it more closely, I think what you have there removes all digits AND whitespace characters. Is that what you were trying to do? or were you looking for something more like this:
$string =~ s/\d+\s//g; Which will remove one or more digits followed by one space (so you don't end up with a bunch of spaces). -----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]
