According to the principle of \b why is this doing this?

$word = "(HP)";
$word =~ s/[,\]\)\}]\b//;
$word =~ s/\b[,\]\)\}]//;

Since the parentheses is on either side of the boundary, it should take off bpth of 
them.
Instead the result is:    $word = "(HP"    
It only took of the end paren.

When I used "(HP),"     the result is "(HP,"?

A second question. If I want to get rid of any non numeric
and non alphabetic before and after a word, but not what's
in the middle (like apostrphes, dashes) of the word, what's
the most simplest way that works. 

Any help is appreciated. 
Thanks.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to