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/
ant is s/[-.]//g;
regards,
jos
Quoting Roger C Haslock <[EMAIL PROTECTED]>:
> Perhaps
> s/[-|\.]//g; # replace any dash or (escaped) dot with nothing
>
> - Original Message -
> From: "Scott" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
ROTECTED]>
> Sent: Friday, January 04, 2002 7:48 PM
> Subject: More formatting questions
>
>
> > First off, thank you to everyone who has helped me dive into perl full
> > force this week. I am glad I am getting to know the language!
> >
> > My question is abou
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 wh
: More formatting questions
First off, thank you to everyone who has helped me dive into perl full
force this week. I am glad I am getting to know the language!
My question is about formatting. I need to strip a decimal out of a
number and dash out of a date. I am importing a file and then
First off, thank you to everyone who has helped me dive into perl full
force this week. I am glad I am getting to know the language!
My question is about formatting. I need to strip a decimal out of a
number and dash out of a date. I am importing a file and then
reformatting it for export t