From: Moises Trovo Date: 2008-01-15T00:01:07+09:00 Subject: Re: regular expression The "\w{7}" matches with 7 chars, so to match all your expression it have to have 9 chars ending with ed and 10 chars ending with ing. On Jan 14, 2008 11:24 AM, Johnathan Smith wrote: > thank you. > > what ive basically got now is > > \w{7}(ed|ing) > > was basically works for ing but only matches a 9 letter word for ed > > there must be a better way to do it > ive been playing around to with no luck > > any suggestions would be greatly appreciated > > > thanks > -- > Posted via http://www.ruby-forum.com/. > >