import re


def re_search(needles=None, haystacks=None):
    """Searches a list of values for a list of regexp"""

    if needles is None or haystacks is None:
        return None

    if isinstance(needles, str):
        needles = [needles]

    if isinstance(haystacks, str):
        haystacks = [haystacks]

    for n in needles:
        rp = re.compile(n)
        for h in haystacks:
            if rp.search(h):
                return n, h

    return None