mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
update docs to reflect that \b considers underscore to be part of a word.
This commit is contained in:
parent
e99e2f53e7
commit
2c519981fb
1 changed files with 2 additions and 2 deletions
|
|
@ -322,8 +322,8 @@ escapes are treated as characters.
|
|||
|
||||
\item[\code{\e b}] Matches the empty string, but only at the
|
||||
beginning or end of a word. A word is defined as a sequence of
|
||||
alphanumeric characters, so the end of a word is indicated by
|
||||
whitespace or a non-alphanumeric character. Inside a character range,
|
||||
alphanumeric or underscore characters , so the end of a word is indicated by
|
||||
whitespace or a non-alphanumeric, non-underscore character. Inside a character range,
|
||||
\regexp{\e b} represents the backspace character, for compatibility with
|
||||
Python's string literals.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue