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
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
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,/
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
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