From c9d6dbc2900ace9564b8f67e63617be747355c6b Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 24 May 2017 00:03:38 -0700 Subject: [PATCH] Added effect of re.ASCII and reworded slightly (#1782) --- Doc/library/re.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.40.0