<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(string, patterns):
 """Given a string return true if it matches the supplied list of patterns. Parameters string : str The string to be matched. The series of regular expressions to attempt to match. """

    if patterns is None:
        return True
    else:
        return any(re.match(pattern, string)
                   for pattern in patterns)