mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#14236: mention Unicode whitespace in \s documentation.
This commit is contained in:
parent
0a6b5419b0
commit
e990092fd0
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,10 @@ resulting RE will match the second character.
|
||||||
In string patterns without the ASCII flag, it will match the whole
|
In string patterns without the ASCII flag, it will match the whole
|
||||||
range of Unicode digits.
|
range of Unicode digits.
|
||||||
\D Matches any non-digit character; equivalent to [^\d].
|
\D Matches any non-digit character; equivalent to [^\d].
|
||||||
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v].
|
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
|
||||||
|
bytes patterns or string patterns with the ASCII flag.
|
||||||
|
In string patterns without the ASCII flag, it will match the whole
|
||||||
|
range of Unicode whitespace characters.
|
||||||
\S Matches any non-whitespace character; equiv. to [^ \t\n\r\f\v].
|
\S Matches any non-whitespace character; equiv. to [^ \t\n\r\f\v].
|
||||||
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
|
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
|
||||||
in bytes patterns or string patterns with the ASCII flag.
|
in bytes patterns or string patterns with the ASCII flag.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue