Here is one way to do that:
my $str = '1,a%2$b*3(c)4,d';
$str =~ s/\D//g;
print $str; # prints 1234
Tony
"David Kramer"
<[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: RegExp
Question: removing anything but...
eState.com
05/21/02 04:45 PM
Im looking for a Regular Expression pattern that will allow me to remove
everything from a string but Numeric values. I could have sworn there was
a simple way to do this, but I cant find it anywhere in Chapter 5 of the
Camel????
Thanks,
DKramer
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
