Avoid negation on key regular expressions.
Refactoring.