Tag Archives: script

Wordplay with Regular Expressions

Or, eat my Will Shortz.

I somehow got into a competition with a friend to think of the most words that followed the pattern of “pizza” (letter, vowel, repeated letter, vowel). The game didn’t last long, but the next day the problem was still bugging me, so I decided to write a php script to go through the scrabble dictionary and find them all, compiling a definitive list. So here they are, with the functions used to check each word:

408 "batty" words