def regex_filter(names, pat):
    pat = re.compile(pat)

    def match(name, fn=pat.search):
        return fn(name) is not None

    return tuple(filter(match, names))
Return a tuple of strings that match the regular expression pattern.
dataset/ETHPy150Open araile/see/see.py/regex_filter