<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def match(value1, value2):
 """ 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. """

        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