(regex)
return match_decorator
Regular expression compiling function decorator.
Regular expression compiling function decorator.
Regular expression compiling function decorator .
def _matches(regex):
    """Regular expression compiling function decorator."""
    def match_decorator(fn):
        automaton = compile(regex, UNICODE | VERBOSE)
        fn.split = automaton.split
        fn.match = automaton.match
        return fn

    return match_decorator
def _matches ( regex ) : def match_decorator ( fn ) : automaton = compile ( regex , UNICODE | VERBOSE ) fn . split = automaton . split fn . match = automaton . match return fn return match_decorator