diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 04:46:34 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 04:46:34 +0300 |
commit | 48d886b725713a2616e67661e3b1ce7bec806b9e (patch) | |
tree | d325dc5b2cc073a3ad6b302f9c6cbfa2d8073616 | |
parent | f8ece8d777319d1f8d8004620d129f2e68f107b3 (diff) | |
download | cpython-git-48d886b725713a2616e67661e3b1ce7bec806b9e.tar.gz |
#14155: add a note about \b.
-rw-r--r-- | Doc/library/re.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 02251cf9d5..b82b39797e 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -398,6 +398,9 @@ accepted by the regular expression parser:: \r \t \v \x \\ +(Note that ``\b`` is used to represent word boundaries, and means "backspace" +only inside character classes.) + Octal escapes are included in a limited form: If the first digit is a 0, or if there are three octal digits, it is considered an octal escape. Otherwise, it is a group reference. As for string literals, octal escapes are always at most |