def valid_input?(key,string)
      raise InvalidFormatError unless valid_regex_format?(key)

      boolarray = validation_regex[key].map do |regxp|
        (string =~ regxp) == 0 ? true : false
      end

      return true if boolarray.include?(true)
      false
    end
def valid_input?(key,string)
      raise InvalidFormatError unless valid_regex_format?(key)

      boolarray = validation_regex[key].map do |regxp|
        (string =~ regxp) == 0 ? true : false
      end

      return true if boolarray.include?(true)
      false
    end
Core method of the module which attempts to check if a provided
 string matches any of the regex's as identified by the key

 @params key, Symbol key which maps to one of the keys in the validation_regex method below
 @params string, String to check
 @returns Boolean, true if string checks out