From 6a633bb87837fb8da42f6ba81e9fa86fdab61a5a Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Fri, 19 Aug 2011 22:54:50 +0200 Subject: fix description of \r; thanks to Thomas Waldmann from docs@ --- 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 3046755..540a209 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -635,7 +635,7 @@ form. of *pattern* in *string* by the replacement *repl*. If the pattern isn't found, *string* is returned unchanged. *repl* can be a string or a function; if it is a string, any backslash escapes in it are processed. That is, ``\n`` is - converted to a single newline character, ``\r`` is converted to a linefeed, and + converted to a single newline character, ``\r`` is converted to a carriage return, and so forth. Unknown escapes such as ``\j`` are left alone. Backreferences, such as ``\6``, are replaced with the substring matched by group 6 in the pattern. For example: -- cgit v0.12