summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-04-29 01:46:34 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-04-29 01:46:34 (GMT)
commit48d886b725713a2616e67661e3b1ce7bec806b9e (patch)
treed325dc5b2cc073a3ad6b302f9c6cbfa2d8073616 /Doc/library/re.rst
parentf8ece8d777319d1f8d8004620d129f2e68f107b3 (diff)
downloadcpython-48d886b725713a2616e67661e3b1ce7bec806b9e.zip
cpython-48d886b725713a2616e67661e3b1ce7bec806b9e.tar.gz
cpython-48d886b725713a2616e67661e3b1ce7bec806b9e.tar.bz2
#14155: add a note about \b.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 02251cf..b82b397 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