From: Sandro Tosi Date: Fri, 19 Aug 2011 20:54:33 +0000 (+0200) Subject: fix description of \r; thanks to Thomas Waldmann from docs@ X-Git-Tag: v2.7.3rc1~502 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7eb3c802e9ff40c6ff6a1f7c7f86097eccd01ab;p=python fix description of \r; thanks to Thomas Waldmann from docs@ --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index f789601c66..599e4d3718 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -613,7 +613,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: