validates values against a predefined set of regexps