From: Corey Haines Date: 2008-02-03T07:11:44+09:00 Subject: Re: Extracting vowels and consonants using regular expression ------=_Part_461_21079343.1201990305261 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline :) Cool. I wasn't sure exactly how to do that. Now I do! And, in the words of one of my personal favorite philosophers, "Knowing is half the battle." On Feb 2, 2008 5:07 PM, Robert Dober wrote: > > > > "cor4ey ha2ines".scan(/[a-z]/i).join.each_char.partition { |x| > "aeiouAEIOU"[x] } > and some golfing > > { |x| /[aeiou]/i =~ x } > > R. > > -- http://www.coreyhaines.com The Internet's Premiere source of information about Corey Haines ------=_Part_461_21079343.1201990305261--