Path 1: 2 calls (1.0)

('(?P[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})', '(?P([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})', '(?P(?:[0-9A-Fa-f]{1,2}...

'(?P[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})|(?P([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})|(?P(?:[0-9A-Fa-f]{1,2}-){7}[0...

1def _combine_regex(*regexes: str) -> str:
2    """Combine a number of regexes in to a single regex.
3
4    Returns:
5        str: New regex with all regexes ORed together.
6    """
7    return "|".join(regexes)