Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!bmc!kuling!jand From: jand@kuling.UUCP (Jan Dj{rv) Newsgroups: comp.lang.perl Subject: Re: matching word boundaries with regexps Summary: Works on HP-UX 7.0 Message-ID: <1344@kuling.UUCP> Date: 18 Jan 90 07:32:11 GMT References: <2295@ruuinf.cs.ruu.nl> Reply-To: jand@kuling.UUCP (Jan Dj{rv) Organization: Dept. of Computer Systems, Uppsala University, Sweden Lines: 27 In article jv@mh.nl (Johan Vromans) writes: :In article <2295@ruuinf.cs.ruu.nl> piet@cs.ruu.nl (Piet van Oostrum) writes: :> It seems that matching word boundaries with \b in regexps doesn't work :> properly. :[example deleted] : :Knowing Piet* is running perl on HP-UX, I tried a little, and found :out that: : - on VAX/Ultrix it behaves like expected : - on HP-UX it fails. : - it runs fine on HP-UX if the 'ignore case' spec is removed from the : matches: : $yes++ if /\byes\b/; : So I think it has something to do with HP's NLS system (a wild : guess, but - who knows?) : :Johan Well, I tried the example on our HP 835 running HP-UX 7.0 and it worked just fine. (O.B.S. This is not to be taken as a defence of HP-UX. 7.0 was installed last Friday, and the bugs keeps coming in :-( ) Probably there is something more subtle to the error. I agree that Johans guess is a wild one, did you forget to put out a :-) somewhere, Johan ? Jan D.