def any_of(*args):
    """Return regex that matches any of the input regex patterns.

    The returned value is equivalent to writing::

        r'(<arg1>|<arg2>|...)'
    """
    return '({})'.format('|'.join(args))
