added utils.valid_regexes