#NEWLINE# def match_regexes( regexes , string ) : #NEWLINE# #INDENT# "\n    Given a string, determine if it matches any of a list of regular\n    expressions. Returns True if it does, False if it doesn't.\n    " #NEWLINE# match = [ regex . search ( string ) for regex in regexes if regex . search ( string ) ] #NEWLINE# if match : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False