NO MORE REGULAR EXPRESSIONS.

I've gone for readability over brevity and even with the imports it's barely bigger than the regex.