change api negation and make regex explicit