Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e990092

Browse files
committed
#14236: mention Unicode whitespace in \s documentation.
1 parent 0a6b541 commit e990092

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/re.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@
6969
In string patterns without the ASCII flag, it will match the whole
7070
range of Unicode digits.
7171
\D Matches any non-digit character; equivalent to [^\d].
72-
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v].
72+
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
73+
bytes patterns or string patterns with the ASCII flag.
74+
In string patterns without the ASCII flag, it will match the whole
75+
range of Unicode whitespace characters.
7376
\S Matches any non-whitespace character; equiv. to [^ \t\n\r\f\v].
7477
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
7578
in bytes patterns or string patterns with the ASCII flag.

0 commit comments

Comments
 (0)