[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

William Budd report at bugs.python.org
Tue Jun 20 23:32:13 EDT 2017


William Budd added the comment:

I don't understand... Isn't the "?" in ".*?" supposed to make the ".*" matching non-greedy, hence matching the first "</p>" rather than the last "</p>"?

----------

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


More information about the Python-bugs-list mailing list