def match?(key, regex)
      return (!validator.datas.has_key?(key) or validator.datas[key].to_s.match(regex))
    end
def match?(key, regex)
      return (!validator.datas.has_key?(key) or validator.datas[key].to_s.match(regex))
    end
Check if the value associated with the given key matches the given regular expression.
 @param [Object]   key the key of the value to compare with the given regexp.
 @param [Regexp]   regex the regex with which match the initial value.
 @return [Boolean] true if the initial value matches the regex, false if not.