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
86765340
Commit
86765340
authored
Aug 20, 2008
by
Mark Summerfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tiny fix of IGNORECASE plus removal of a UNICODE reference.
parent
6c4f6179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Doc/library/re.rst
Doc/library/re.rst
+7
-6
No files found.
Doc/library/re.rst
View file @
86765340
...
...
@@ -173,11 +173,11 @@ The special characters are:
``'m'``, or ``'$'``; ``[a-z]`` will match any lowercase letter, and
``[a-zA-Z0-9]`` matches any letter or digit. Character classes such
as ``\w`` or ``\S`` (defined below) are also acceptable inside a
range, although the characters they match depends on whether
:const:`LOCALE`
or :const:`UNICODE` mode is in force. If you want to include a
``']'`` or a ``'-'`` inside a set, precede it with a backslash, or
place it as the first character. The pattern ``[]]`` will match
``']'``, for example.
range, although the characters they match depends on whether
:const:`ASCII` or :const:`LOCALE` mode is in force. If you want to
include a ``']'`` or a ``'-'`` inside a set, precede it with a
backslash, or place it as the first character. The pattern ``[]]``
will match
``']'``, for example.
You can match the characters not within a range by :dfn:`complementing` the set.
This is indicated by including a ``'^'`` as the first character of the set;
...
...
@@ -493,7 +493,8 @@ form.
IGNORECASE
Perform case-insensitive matching; expressions like ``[A-Z]`` will match
lowercase letters, too. This is not affected by the current locale.
lowercase letters, too. This is not affected by the current locale
and works for Unicode characters as expected.
.. data:: L
...
...
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