[issue41605] t = re.sub(".*", "*", src) has different ouput
Eric V. Smith
report at bugs.python.org
Fri Aug 21 03:48:03 EDT 2020
Eric V. Smith <eric at trueblade.com> added the comment:
I'm suspicious that this differs per-OS. Please provide exact Python version information for each OS you list in your initial report.
I suspect what you're seeing is related to this change:
Changed in version 3.7: Empty matches for the pattern are replaced when adjacent to a previous non-empty match.
----------
components: +Regular Expressions -2to3 (2.x to 3.x conversion tool)
nosy: +eric.smith, ezio.melotti, mrabarnett
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41605>
_______________________________________
More information about the Python-bugs-list
mailing list