Eric V. Smith <eric at trueblade.com> added the comment: The 4th parameter to re.sub() is a count, not flags. ---------- nosy: +eric.smith _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue11957> _______________________________________