From: dblack@... Date: 2002-09-08T06:58:02+09:00 Subject: RE: Regular expression question Hi -- 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)/ David -- David Alan Black | Register for RubyConf 2002! home: dblack@candle.superlink.net | November 1-3 work: blackdav@shu.edu | Seattle, WA, USA Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com