Re: Reegexp removing everything except...

2004-08-26 Thread juman
Thanks this solved it all and I learned a new Perl-thingy ;) /juman On Thu, Aug 26, 2004 at 12:22:04PM +0200, Paul Johnson wrote: > On Thu, Aug 26, 2004 at 12:06:57PM +0200, juman wrote: > > > I have som strings that I want to clean up. They can contain digits, > > some special characters (white

Re: Reegexp removing everything except...

2004-08-26 Thread Gunnar Hjalmarsson
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

Re: Reegexp removing everything except...

2004-08-26 Thread Paul Johnson
On Thu, Aug 26, 2004 at 12:06:57PM +0200, 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? What have you tried? y/0-9,/

Re: Reegexp removing everything except...

2004-08-26 Thread Gavin Henry
juman said: > 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? > >From Learning Perl Chp9: "9.6.1. Global Replacements with /g As you ma

Reegexp removing everything except...

2004-08-26 Thread juman
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? /juman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL