Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: matching word boundaries with regexps Message-ID: <6793@jpl-devvax.JPL.NASA.GOV> Date: 15 Jan 90 18:57:12 GMT References: <2295@ruuinf.cs.ruu.nl> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 15 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. : I get random results. The following script should illustrate the problem. : Feed it with lines of the form: vote yes (or: vote no) : Or an I doing something wrong??? It's a bug. I fixed it a week or two ago here, and it will be fixed in patch 9. There was a bad interaction between the code that handles case insensitivity and the code that checks for \b-ness at the beginning of a string. I tried your test program and it works under the new version. Soon. Larry