fixed enum deprecation warning
added new regular expression syntax for attribute tests