Wayne Davison <wayne.davi...@mariadb.com> added the comment:

Another argument in favor of this being a bug, this does not exhibit the same 
doubling:

txt = ' test'
txt = re.sub(r'^\s*', '^', txt)

That always substitutes once.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40027>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to