import re


def find(seq, pattern, matcher=re.match):
    """
    Search pattern in each element in sequence and return the first
    element that matches the pattern. (Like re.search but for lists.)
    """
    for elem in seq:
        if matcher(pattern, elem) is not None:
            return elem