Ma Lin <[email protected]> added the comment:
The re.sub() doc said: Changed in version 3.7: Empty matches for the pattern are replaced when adjacent to a previous non-empty match. IMO 3.7+ behavior is more reasonable, and it fixed a bug, see issue25054. ---------- nosy: +malin _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41555> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
