Created
July 6, 2013 05:49
-
-
Save vderyagin/5938810 to your computer and use it in GitHub Desktop.
Find English words with three consecutive double digits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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