From c969358c64840c01e8e49ae4f53bdac3ead65426 Mon Sep 17 00:00:00 2001 From: Robert DiPietro Date: Fri, 12 Jul 2019 15:58:38 -0400 Subject: [PATCH] Fix typo in re.escape documentation --- Doc/library/re.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 5ef72b535ce8d4..158248c3d14794 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+'