summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2017-09-04 21:58:31 (GMT)
committerGitHub <noreply@github.com>2017-09-04 21:58:31 (GMT)
commitd50ce4fcc9b481b66ce594f291dec14251b16ba5 (patch)
tree4c378f5f01b7b64517277a0b069062aaf4c6aed3 /Doc
parent1dba3789e335f06e3b01cdc84070f2e828c9b861 (diff)
downloadcpython-d50ce4fcc9b481b66ce594f291dec14251b16ba5.zip
cpython-d50ce4fcc9b481b66ce594f291dec14251b16ba5.tar.gz
cpython-d50ce4fcc9b481b66ce594f291dec14251b16ba5.tar.bz2
[3.6] Added effect of re.ASCII and reworded slightly (GH-1782) (#3313)
(cherry picked from commit c9d6dbc2900ace9564b8f67e63617be747355c6b)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 7a51abd..56fc4ed 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -542,9 +542,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