s = "hello" s =~ /[aeiou]{2}/ # => nil: no double vowels in "hello" s.match(/[aeiou]/) {|m| m.to_s} # => "e": return first vowel