Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a633bb

Browse files
committed
fix description of \r; thanks to Thomas Waldmann from docs@
1 parent 20db511 commit 6a633bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ form.
635635
of *pattern* in *string* by the replacement *repl*. If the pattern isn't found,
636636
*string* is returned unchanged. *repl* can be a string or a function; if it is
637637
a string, any backslash escapes in it are processed. That is, ``\n`` is
638-
converted to a single newline character, ``\r`` is converted to a linefeed, and
638+
converted to a single newline character, ``\r`` is converted to a carriage return, and
639639
so forth. Unknown escapes such as ``\j`` are left alone. Backreferences, such
640640
as ``\6``, are replaced with the substring matched by group 6 in the pattern.
641641
For example:

0 commit comments

Comments
 (0)