From: Robert Klemme Date: 2008-01-15T00:32:46+09:00 Subject: Re: regular expression 2008/1/14, Johnathan Smith : > 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 Maybe you should rather *read* what people write if they take the time to help you. > any suggestions would be greatly appreciated Have been made already. Cheers robert -- use.inject do |as, often| as.you_can - without end