[issue32308] Replace empty matches adjacent to a previous non-empty match in re.sub()
Anders Hovmöller
report at bugs.python.org
Thu Apr 11 05:57:04 EDT 2019
Anders Hovmöller <boxed at killingar.net> added the comment:
Just as a comparison, sed does the 3.6 thing:
> echo foo | sed 's/\(.*\)/x\1y/g'
xfooy
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32308>
_______________________________________
More information about the Python-bugs-list
mailing list