Thanks Everyone!!! $casQty =~ s/[^\d]//g; worked like a charm!!!!
-----Original Message-----
From: Michael D. Schleif [mailto:[EMAIL PROTECTED]]
Sent: Tue 5/21/2002 2:51 PM
To:
Cc: [EMAIL PROTECTED]
Subject: Re: RegExp Question: removing anything but...
David Kramer wrote:
>
> 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????
Depending on your definition of `Numeric values', negating a character
class:
$string =~ s/[^\d]//g;
hth
--
Best Regards,
mds
mds resource
888.250.3987
Dare to fix things before they break . . .
Our capacity for understanding is inversely proportional to how much we
think we know. The more I know, the more I know I don't know . . .
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
z¹VŠ}öÙ¢žf¢–)à–+-=êåZ)÷ØfŠyb²Û®ð¶+ÞJÖyÊ&N‹§²æìr¸›zm§ÿåŠËlz»Àrدy+Zµç(›ùšŠYšŸù²²æì