Skip to content

Commit d50ce4f

Browse files
authored
[3.6] Added effect of re.ASCII and reworded slightly (GH-1782) (#3313)
(cherry picked from commit c9d6dbc)
1 parent 1dba378 commit d50ce4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/library/re.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,11 @@ form.
542542
.. data:: I
543543
IGNORECASE
544544

545-
Perform case-insensitive matching; expressions like ``[A-Z]`` will match
546-
lowercase letters, too. This is not affected by the current locale
547-
and works for Unicode characters as expected.
545+
Perform case-insensitive matching; expressions like ``[A-Z]`` will also
546+
match lowercase letters. The current locale does not change the effect of
547+
this flag. Full Unicode matching (such as ``Ü`` matching ``ü``) also
548+
works unless the :const:`re.ASCII` flag is also used to disable non-ASCII
549+
matches.
548550

549551

550552
.. data:: L

0 commit comments

Comments
 (0)