[Python-3000-checkins] r65904 - python/branches/py3k/Doc/library/re.rst

mark.summerfield python-3000-checkins at python.org
Wed Aug 20 09:40:18 CEST 2008


Author: mark.summerfield
Date: Wed Aug 20 09:40:18 2008
New Revision: 65904

Log:
Tiny fix of IGNORECASE plus removal of a UNICODE reference.



Modified:
   python/branches/py3k/Doc/library/re.rst

Modified: python/branches/py3k/Doc/library/re.rst
==============================================================================
--- python/branches/py3k/Doc/library/re.rst	(original)
+++ python/branches/py3k/Doc/library/re.rst	Wed Aug 20 09:40:18 2008
@@ -173,11 +173,11 @@
    ``'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 @@
           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


More information about the Python-3000-checkins mailing list