Method: rich.highlighter._combine_regex
Calls: 2, Exceptions: 0, Paths: 1Back
Path 1: 2 calls (1.0)
('(?P
'(?P
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)