def METHOD_NAME(expr):
    """Helper function to create regular expressions to only keep
    matcher functions"""
    rex = re.compile(expr)
    def match_re(fname):
        return not rex.match(fname)
    return match_re