Skip to content

Instantly share code, notes, and snippets.

@bethsecor
Last active October 14, 2015 15:15
Show Gist options
  • Save bethsecor/b56036ad7a6134cbcd94 to your computer and use it in GitHub Desktop.
Save bethsecor/b56036ad7a6134cbcd94 to your computer and use it in GitHub Desktop.
File.open("word-list.txt", "r") do |f|
f.each_line do |line|
vowels = line.chars.select { |l| l =~ /[aeiouy]/ }
puts line if vowels == ["a","e","i","o","u","y"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment