Simplified regexes and made them verbose.