diff options
author | Brian Ward <bri@aem7.net> | 2017-05-24 07:03:38 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2017-05-24 07:03:38 (GMT) |
commit | c9d6dbc2900ace9564b8f67e63617be747355c6b (patch) | |
tree | 03d6e5bc51c5028034e8f16dbad2d05acfa0b8e5 | |
parent | c7ec9985bbdbb2b073f2c37febd18268817da29a (diff) | |
download | cpython-c9d6dbc2900ace9564b8f67e63617be747355c6b.zip cpython-c9d6dbc2900ace9564b8f67e63617be747355c6b.tar.gz cpython-c9d6dbc2900ace9564b8f67e63617be747355c6b.tar.bz2 |
Added effect of re.ASCII and reworded slightly (#1782)
-rw-r--r-- | Doc/library/re.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 131f372..96338dc 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 |