Skip to content

Commit 285e51b

Browse files
committed
#14155: add a note about \b.
1 parent 100b889 commit 285e51b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/re.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ accepted by the regular expression parser::
417417
\r \t \v \x
418418
\\
419419

420+
(Note that ``\b`` is used to represent word boundaries, and means "backspace"
421+
only inside character classes.)
422+
420423
Octal escapes are included in a limited form. If the first digit is a 0, or if
421424
there are three octal digits, it is considered an octal escape. Otherwise, it is
422425
a group reference. As for string literals, octal escapes are always at most

0 commit comments

Comments
 (0)