diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-24 20:58:14 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-24 20:58:14 (GMT) |
commit | a54aae068325551bcc70c151b483f1b38ca0c687 (patch) | |
tree | b9e9f9d33b597ea84421d22c19cbbb6f551c90ef /Doc/howto | |
parent | 793c14ea2965a1584a7f85aa663d0fd7cfdef629 (diff) | |
download | cpython-a54aae068325551bcc70c151b483f1b38ca0c687.zip cpython-a54aae068325551bcc70c151b483f1b38ca0c687.tar.gz cpython-a54aae068325551bcc70c151b483f1b38ca0c687.tar.bz2 |
Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
and ASCII letter now raise a deprecation warning and will be forbidden in
Python 3.6.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/regex.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst index 9ae04d7..ad2c6ab 100644 --- a/Doc/howto/regex.rst +++ b/Doc/howto/regex.rst @@ -1138,7 +1138,7 @@ Empty matches are replaced only when they're not adjacent to a previous match. If *replacement* 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 -carriage return, and so forth. Unknown escapes such as ``\j`` are left alone. +carriage return, and so forth. Unknown escapes such as ``\&`` are left alone. Backreferences, such as ``\6``, are replaced with the substring matched by the corresponding group in the RE. This lets you incorporate portions of the original text in the resulting replacement string. |