We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6eaae commit 803e1a5Copy full SHA for 803e1a5
Doc/whatsnew/3.7.rst
@@ -1157,7 +1157,7 @@ Changes in the Python API
1157
1158
:func:`re.sub()` now replaces empty matches adjacent to a previous
1159
non-empty match. For example ``re.sub('x*', '-', 'abxd')`` returns now
1160
- ``'-a-b--d-'`` instead of ``'-a-b--d-'`` (the first minus between 'b' and
+ ``'-a-b--d-'`` instead of ``'-a-b-d-'`` (the first minus between 'b' and
1161
'd' replaces 'x', and the second minus replaces an empty string between
1162
'x' and 'd').
1163
0 commit comments