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/...//d instead, if only so that the programmer learns another tool and
how it is useful.

  tr/-.//d;

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to