From: Robert Dober Date: 2008-02-03T07:07:57+09:00 Subject: Re: Extracting vowels and consonants using regular expression > > "cor4ey ha2ines".scan(/[a-z]/i).join.each_char.partition { |x| "aeiouAEIOU"[x] } and some golfing { |x| /[aeiou]/i =~ x } R.