Factory for :class:`Matcher` instances; returns a :class:`Matcher`
        suitable for matching the supplied pattern

def create(pattern, casesensitive=True):
        """Factory for :class:`Matcher` instances; returns a :class:`Matcher`
        suitable for matching the supplied pattern"""
        casesensitive = determine_casesensitive(casesensitive)
        if "?" in pattern or "*" in pattern:
            return FNMatcher(pattern, casesensitive)
        else:
            return ConstantMatcher(pattern, casesensitive)