def join_regexes(regexes):
    """ Utility function, takes in a list of regexes and outputs their OR """
    result = r''
    for reg in regexes:
        result = result + '('
        result = result + reg
        result = result + ')|'
    return result[:-1]