From: Ezio Melotti Date: Sun, 29 Apr 2012 01:46:34 +0000 (+0300) Subject: #14155: add a note about \b. X-Git-Tag: v2.7.4rc1~872 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48d886b725713a2616e67661e3b1ce7bec806b9e;p=python #14155: add a note about \b. --- 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