added utils.valid_regexes
Merge pull request #592 from msimerson/utils2

added utils.valid_regexes