Skip to content

Instantly share code, notes, and snippets.

@vderyagin
Created July 6, 2013 05:49
Show Gist options
  • Save vderyagin/5938810 to your computer and use it in GitHub Desktop.
Save vderyagin/5938810 to your computer and use it in GitHub Desktop.
Find English words with three consecutive double digits
File.foreach '/usr/share/dict/web2' do |line|
puts line if line[/((.)\k<-1>){3}/]
end
# >> bookkeeper
# >> bookkeeping
# >> subbookkeeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment