Use verbose regular expressions

This allows more readable code.

Inspiration for treating regular expressions as code came from Damian Conway's talk "Understanding and Using Regular Expressions".