----- Original Message ----- 
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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;

I believe what you want is this :-
my $string = '08 852365 21 Hello world!';
$string =~ s/\d//g ;
$string =~ s/^\s*//g ;
print $string;

$string =~ s/[.*\d\s]//g;
What does this do exactly?

It substitutes dots, digits , spaces into nothing. And your final result would be 
Helloworld!

Reply via email to