Think ‘regex’ and ‘fun’ can’t exist in the same sentence? I’ll teach you how to win at computer science’s greatest logic puzzle.