human
Complete this python program:
def filter_exclude(specs, exclude):
assistant
#Here is the Python program you requested.

    """Filter specs given sequence of exclude regex
    """
    to_exclude = [re.compile(e) for e in exclude]
    def exclude(spec):
        for e in to_exclude:
            if e.match(spec.name):
                return True
        return False
    return [s for s in specs if (not exclude(s))]