Tighten up and reformat giant regexps.