Regular expressions are a way to specify textual patterns. Given a regular expression, one can search for the pattern it specifies inside a text string. A regular expression is used in the what if? article Phone Keypad to calculate the answer to that week's question. Randall also mentioned he got distracted by https://regex.alf.nu, a website with a regexp golf game, while researching for the what if? article T-rex Calories.