<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def accepts(regex, negate, *values):
 """Given a compiled regex and a negate, find if any of the values match. Args: regex (Pattern):
 negate (bool):
 *values (str):
 Returns: """

    return any(v and regex.search(v) for v in values) != negate