From: Rich Kilmer Date: 2002-09-09T04:22:11+09:00 Subject: RE: Regular expression question Switched to that...it works great. Thanks, rich > -----Original Message----- > From: Johan Holmberg [mailto:holmberg@iar.se] > Sent: Sunday, September 08, 2002 3:10 PM > To: ruby-talk ML > 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 > > >