import re


def include_filter(incl_filter, paths):
    """
    Matches a set of paths against an include filter.

    param: incl_filter: The filter to match.
    param: paths: The set of paths to match against the filter.
    returns: A set of paths which match the include filter.
    """
    hits = set()
    for p in paths:
        if re.search(incl_filter, p):
            hits.add(p)

    return hits