\b confusion

2004-06-18 Thread Murzc
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

Re: \b confusion

2004-06-18 Thread Randy W. Sims
[EMAIL PROTECTED] wrote: 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

Re: \b confusion

2004-06-18 Thread Randy W. Sims
After a long day, a long night, and another long day I spew crap. And no one catches me. A couple hours later I lay down to finally get some sleep and !! I realized I screwed up. I try to shove it off to no avail. I must respond... Randy W. Sims wrote: [EMAIL PROTECTED] wrote: According to the

[pkraus@pelsupply.com: Re: \b confusion]

2004-06-18 Thread Paul D. Kraus
--- Begin Message --- On Fri, Jun 18, 2004 at 12:43:31PM -0400, [EMAIL PROTECTED] wrote: > According to the principle of \b why is this doing this? > > $word = "(HP)"; > $word =~ s/[,\]\)\}]\b//; > $word =~ s/\b[,\]\)\}]//; $word = '(HP)'; $word =~ s/^\(|\)$//g; # remove parren @ beginng and end.