Skip to content

Commit c9d6dbc

Browse files
bricsucgpshead
authored andcommitted
Added effect of re.ASCII and reworded slightly (#1782)
1 parent c7ec998 commit c9d6dbc

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
@@ -541,9 +541,11 @@ form.
541541
.. data:: I
542542
IGNORECASE
543543

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

548550

549551
.. data:: L

0 commit comments

Comments
 (0)