test for regular expression that negates character class