From: Johan Holmberg Date: 2002-09-09T04:09:30+09:00 Subject: Re: Regular expression question dblack@candle.superlink.net writes: > > On Sun, 8 Sep 2002, Rich Kilmer wrote: > > > Actually I did not need the - so the /\Adec(?[\w])/ worked great. > > In that case you don't need the [...], because \w creates an implicit > character class of its own. (But you *do* need to restore the '!' :-) > > /\Adec(?!\w)/ > I think you could write this /\Adec\b/ where \b matches the "word boundary" after "dec". /Johan Holmberg