Skip to content

Instantly share code, notes, and snippets.

@vlad-shatskyi
Last active December 13, 2015 17:29
Show Gist options
  • Save vlad-shatskyi/4948332 to your computer and use it in GitHub Desktop.
Save vlad-shatskyi/4948332 to your computer and use it in GitHub Desktop.
File.foreach( "dictionary.txt" ) do |line|
md = line.match(/\A([A-Z]+)/)
puts md[0] if md
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment