Juman wrote:
I have som strings that I want to clean up. They can contain
digits, some special characters (white space etc) and a comma and
all I want to keep is the digits and the comma? Any idea how I
could do this?

Use the s/// operator (explained in "perldoc perlop").

The PATTERN may consist of the character class [^\d,] which represents
any character except for digits and commas. Read more about character
classes in e.g. "perldoc perlretut".

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to