]> granicus.if.org Git - python/commitdiff
#14155: add a note about \b.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 29 Apr 2012 01:52:30 +0000 (04:52 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 29 Apr 2012 01:52:30 +0000 (04:52 +0300)
Doc/library/re.rst

index b4e055701102c123aa8b17aa7cbeca970ba23b1b..07868b2a6fcaebcc9690baa0d71a69cc5e203a8e 100644 (file)
@@ -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