Allow attributes to be validated against regexes