[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed
Serhiy Storchaka
report at bugs.python.org
Tue Jun 20 23:26:30 EDT 2017
Serhiy Storchaka added the comment:
It works correctly. It finds a substring that starts with '<div><p>' and ends with '</p></div>' from left to right. The leftmost found substring starts from index 0 and ends before the final '\n'. Overlapped substrings are not found.
----------
nosy: +serhiy.storchaka
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30720>
_______________________________________
More information about the Python-bugs-list
mailing list