From 285e51b7e025b3aae7149a4eaa544e937c6bb37e Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sun, 29 Apr 2012 04:52:30 +0300 Subject: #14155: add a note about \b. --- Doc/library/re.rst | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v0.12