code: def match(value1, value2):
          
          if value1 == None and value2 == None:
              return True
          if value1 == None or value2 == None:
              return False
  
          string1 = str(value1)
          string2 = str(value2)
          return re.match(string2, string1) != None
docs: Checks if string matches a regular expression
  
          :param value1: a string value to match
  
          :param value2: a regular expression string
  
          :return: true if the value matches regular expression and false otherwise.