From: Rick DeNatale Date: 2008-01-17T01:53:12+09:00 Subject: Re: regular expression On 1/16/08, Johnathan Smith wrote: > hi there > > i wanting to write a regular expression which matches words which > contain the vowels [aeiou] in alphabetical order > > im not sure where to start so any help would be greatly appreciated > > thans > -- > Posted via http://www.ruby-forum.com/. > > Something like this? irb(main):001:0> "frabelious" =~ /a.*?e.*?i.*?o.*?u/ => 2 irb(main):002:0> "frabeelious" =~ /a.*?e.*?i.*?o.*?u/ => 2 irb(main):003:0> "friaeelaous" =~ /a.*?e.*?i.*?o.*?u/ => nil -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/