Simplify regex use of negative lookaheads.