summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-04-29 01:52:30 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-04-29 01:52:30 (GMT)
commit285e51b7e025b3aae7149a4eaa544e937c6bb37e (patch)
tree03133f3396535214ac0fcf2d8e5fd131d8150f7e /Doc
parent100b889ccd742022b4eaeee29f68e75bdcecdc3b (diff)
downloadcpython-285e51b7e025b3aae7149a4eaa544e937c6bb37e.zip
cpython-285e51b7e025b3aae7149a4eaa544e937c6bb37e.tar.gz
cpython-285e51b7e025b3aae7149a4eaa544e937c6bb37e.tar.bz2
#14155: add a note about \b.
Diffstat (limited to 'Doc')
-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 b4e0557..07868b2 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -417,6 +417,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