Message 172698 - Python tracker (original) (raw)
Note that this really can't be done in user-level code.
Well, how about:
def fullmatch(regex, input, flags=0): return re.match("(:?" + regex + ")$", input, flags)
Note that this really can't be done in user-level code.
Well, how about:
def fullmatch(regex, input, flags=0): return re.match("(:?" + regex + ")$", input, flags)