diff options
author | Robert DiPietro <rdipietro@gmail.com> | 2019-07-13 04:35:04 -0400 |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2019-07-13 16:35:04 +0800 |
commit | fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf (patch) | |
tree | 39a8ba8e6f3d340ae19ccdf7a207fb42746de52a | |
parent | b9a0376b0dedf16a2f82fa43d851119d1f7a2707 (diff) | |
download | cpython-git-fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf.tar.gz |
Fix typo in re.escape documentation (GH-14722)
-rw-r--r-- | Doc/library/re.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 5ef72b535c..158248c3d1 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -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+' |