/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# words with three consecutive doubled letters perl -ne 'print if /(.)\1(.)\2(.)\3/' /usr/share/dict/words # words with three doubled letters, regardless of whether they’re consecutive. perl -ne 'print if /(.)\1.(.)\2.(.)\3/' /usr/share/dict/words # words with four doubled letters perl -ne 'print if /(.)\1.*(.)\2.*(.)\3.*(.)\4/' /usr/share/dict/words
URL: http://www.leancrew.com/all-this/2008/07/words-with-many-doubled-letters/