Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dc0b324a
Commit
dc0b324a
authored
Apr 11, 2012
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix closes Issue14258 - Clarify the re.LOCALE and re.UNICODE flags for \S class
parent
6d9dd432
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
Doc/library/re.rst
Doc/library/re.rst
+12
-12
No files found.
Doc/library/re.rst
View file @
dc0b324a
...
...
@@ -353,20 +353,20 @@ the second character. For example, ``\$`` matches the character ``'$'``.
character properties database.
``\s``
When the :const:`
LOCALE` and :const:`UNICODE` flags are not specified, matches
any whitespace character; this is equivalent to the set ``[ \t\n\r\f\v]``. With
:const:`LOCALE`
, it will match this set plus whatever characters are defined as
space for the current locale. If :const:`UNICODE` is set, this will match the
characters ``[ \t\n\r\f\v]`` plus whatever is classified as space in the Unicode
character properties
database.
When the :const:`
UNICODE` flag is not specified, it matches any whitespace
character, this is equivalent to the set ``[ \t\n\r\f\v]``. The
:const:`LOCALE`
flag has no extra effect on matching of the space.
If :const:`UNICODE` is set, this will match the characters ``[ \t\n\r\f\v]``
plus whatever is classified as space in the Unicode character properties
database.
``\S``
When the :const:`
LOCALE` and :const:`UNICODE` flags are not specified,
matches any non-whitespace character; this is equivalent to the set ``[^
\t\n\r\f\v]`` With :const:`LOCALE`, it will match the above set plus any
non-space character in the current locale. If :const:`UNICODE` is set,
the
above set ``[^ \t\n\r\f\v]`` plus the characters not marked as space in the
Unicode character properties database.
When the :const:`
UNICODE` flags is not specified, matches any non-whitespace
character; this is equivalent to the set ``[^ \t\n\r\f\v]`` The
:const:`LOCALE` flag has no extra effect on non-whitespace match. If
:const:`UNICODE` is set, then any character not marked as space in
the
Unicode character properties database is matched.
``\w``
When the :const:`LOCALE` and :const:`UNICODE` flags are not specified, matches
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment