Today I learned how to use \b and \B to match prefixes and suffixes with regex.
\b
\B
Check out codegolf.stackexchange.com if you want to solve programming puzzles, but with a twist.