Antoine Pitrou added the comment: > 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) ---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16203> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com