From: Brian Ward Date: Wed, 24 May 2017 07:03:38 +0000 (-0700) Subject: Added effect of re.ASCII and reworded slightly (#1782) X-Git-Tag: v3.7.0a1~751 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9d6dbc2900ace9564b8f67e63617be747355c6b;p=python Added effect of re.ASCII and reworded slightly (#1782) --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 131f3722c3..96338dc27b 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -541,9 +541,11 @@ form. .. data:: I IGNORECASE - Perform case-insensitive matching; expressions like ``[A-Z]`` will match - lowercase letters, too. This is not affected by the current locale - and works for Unicode characters as expected. + Perform case-insensitive matching; expressions like ``[A-Z]`` will also + match lowercase letters. The current locale does not change the effect of + this flag. Full Unicode matching (such as ``Ü`` matching ``ü``) also + works unless the :const:`re.ASCII` flag is also used to disable non-ASCII + matches. .. data:: L