diff options
author | Mark Summerfield <list@qtrac.plus.com> | 2008-08-20 07:40:18 (GMT) |
---|---|---|
committer | Mark Summerfield <list@qtrac.plus.com> | 2008-08-20 07:40:18 (GMT) |
commit | 86765340825b609a47601f8b0d121f370736bb62 (patch) | |
tree | cbb59b708b0da77d426590cb35c7fea63951a841 /Doc/library/re.rst | |
parent | 6c4f617922c055141935630c51b7649c985a73e3 (diff) | |
download | cpython-86765340825b609a47601f8b0d121f370736bb62.zip cpython-86765340825b609a47601f8b0d121f370736bb62.tar.gz cpython-86765340825b609a47601f8b0d121f370736bb62.tar.bz2 |
Tiny fix of IGNORECASE plus removal of a UNICODE reference.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index e8650d7..2020577 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -173,11 +173,11 @@ The special characters are: ``'m'``, or ``'$'``; ``[a-z]`` will match any lowercase letter, and ``[a-zA-Z0-9]`` matches any letter or digit. Character classes such as ``\w`` or ``\S`` (defined below) are also acceptable inside a - range, although the characters they match depends on whether :const:`LOCALE` - or :const:`UNICODE` mode is in force. If you want to include a - ``']'`` or a ``'-'`` inside a set, precede it with a backslash, or - place it as the first character. The pattern ``[]]`` will match - ``']'``, for example. + range, although the characters they match depends on whether + :const:`ASCII` or :const:`LOCALE` mode is in force. If you want to + include a ``']'`` or a ``'-'`` inside a set, precede it with a + backslash, or place it as the first character. The pattern ``[]]`` + will match ``']'``, for example. You can match the characters not within a range by :dfn:`complementing` the set. This is indicated by including a ``'^'`` as the first character of the set; @@ -493,7 +493,8 @@ form. IGNORECASE Perform case-insensitive matching; expressions like ``[A-Z]`` will match - lowercase letters, too. This is not affected by the current locale. + lowercase letters, too. This is not affected by the current locale + and works for Unicode characters as expected. .. data:: L |