[issue11198] re sub subn backreferrence too few replacements

Matthew Barnett report at bugs.python.org
Sat Feb 12 03:52:47 CET 2011


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

Argument 4 of re.subn(...) is 'count', the maximum number of replacements to perform, but you're passing in the MULTILINE flag, which happens to have the integer value 8, hence you're limiting the maximum number of replacements to 8.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11198>
_______________________________________


More information about the Python-bugs-list mailing list