]> granicus.if.org Git - python/commitdiff
Tiny fix of IGNORECASE plus removal of a UNICODE reference.
authorMark Summerfield <list@qtrac.plus.com>
Wed, 20 Aug 2008 07:40:18 +0000 (07:40 +0000)
committerMark Summerfield <list@qtrac.plus.com>
Wed, 20 Aug 2008 07:40:18 +0000 (07:40 +0000)
Doc/library/re.rst

index e8650d79ac50a86b118bbae1011ad4f150225d4a..2020577aa98a77f0631f27a9c81199f92cdd58c2 100644 (file)
@@ -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