Wayne Davison <[email protected]> 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 <[email protected]> <https://bugs.python.org/issue40027> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
