from typing import Iterable
from typing import Pattern
import re


def any_re(res: Iterable[str]) -> Pattern:
    """Given a list of RE strings, return an RE to match any of them."""
    return re.compile('|'.join((f'({i})' for i in res)))