def matches_masks(target, masks):
for mask in masks:<EOL><INDENT>if mask.search(target):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Determines whether or not the target string matches any of the regular
expressions specified.

:param target: the string to check
:type target: str
:param masks: the regular expressions to check against
:type masks: list(regular expression object)
:returns: bool