diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 05:23:25 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-04-29 05:23:25 (GMT) |
commit | e990092fd0e17f79f282f4009ce1676bfde09ab4 (patch) | |
tree | 387b652fb3261f7ab193c899fc43fc82483f039b | |
parent | 0a6b5419b02862bf6270bbd27f472eb2f02b8ae9 (diff) | |
download | cpython-e990092fd0e17f79f282f4009ce1676bfde09ab4.zip cpython-e990092fd0e17f79f282f4009ce1676bfde09ab4.tar.gz cpython-e990092fd0e17f79f282f4009ce1676bfde09ab4.tar.bz2 |
#14236: mention Unicode whitespace in \s documentation.
-rw-r--r-- | Lib/re.py | 5 |
1 files changed, 4 insertions, 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 range of Unicode digits. \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]. \w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_] in bytes patterns or string patterns with the ASCII flag. |