Commit fb6c1f8d authored by Robert DiPietro's avatar Robert DiPietro Committed by Xiang Zhang

Fix typo in re.escape documentation (GH-14722)

parent b9a0376b
......@@ -942,7 +942,7 @@ form.
>>> print('|'.join(map(re.escape, sorted(operators, reverse=True))))
/|\-|\+|\*\*|\*
This functions must not be used for the replacement string in :func:`sub`
This function must not be used for the replacement string in :func:`sub`
and :func:`subn`, only backslashes should be escaped. For example::
>>> digits_re = r'\d+'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment