From 48d886b725713a2616e67661e3b1ce7bec806b9e Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sun, 29 Apr 2012 04:46:34 +0300 Subject: [PATCH] #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 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 -- 2.40.0