On Jan 4, [EMAIL PROTECTED] said:
>see, [] is already a character CLASS.. which means 'any character
>between these braces' - in short, an implied OR.
Good. You said it so I don't have to.
>what you want is s/[-.]//g;
When I see a construct such as that (s/[...]//g), I often suggest using
tr/
ehm, that's really not what you want...
see, [] is already a character CLASS.. which means 'any character between these
braces' - in short, an implied OR.
for example:
kane@outcast> perl -e '$_=q[-a|b.c];s/[-|\.]//g;print'
abc
kane@outcast>
as you can see, the | symbol ALSO got removed..
on
Thank you everyone! Works like a charm!
-Scott
On Fri, 4 Jan 2002, Roger C Haslock wrote:
> Perhaps
> s/[-|\.]//g; # replace any dash or (escaped) dot with nothing
>
> - Original Message -
> From: "Scott" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 04, 200
Perhaps
s/[-|\.]//g; # replace any dash or (escaped) dot with nothing
- Original Message -
From: "Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 7:48 PM
Subject: More formatting questions
> First off, thank you to everyone who has helped me dive into p
$dotdate =~ s/\.//;
$dashdate =~ s/-//;
Scott Lutz
Pacific Online Support
Phone: 604.638.6010
Fax: 604.638.6020
Toll Free: 1.877.503.9870
http://www.paconline.net
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: January 4, 2002 11:49 AM
To: [EMAIL PROTECTED]
Subject: Mor