[Python-checkins] r70858 - python/trunk/Doc/howto/regex.rst

georg.brandl python-checkins at python.org
Tue Mar 31 20:38:57 CEST 2009


Author: georg.brandl
Date: Tue Mar 31 20:38:56 2009
New Revision: 70858

Log:
#5241: document missing U in regex howto.

Modified:
   python/trunk/Doc/howto/regex.rst

Modified: python/trunk/Doc/howto/regex.rst
==============================================================================
--- python/trunk/Doc/howto/regex.rst	(original)
+++ python/trunk/Doc/howto/regex.rst	Tue Mar 31 20:38:56 2009
@@ -540,6 +540,10 @@
 | :const:`VERBOSE`, :const:`X`    | Enable verbose REs, which can be organized |
 |                                 | more cleanly and understandably.           |
 +---------------------------------+--------------------------------------------+
+| :const:`UNICODE`, :const:`U`    | Makes several escapes like ``\w``, ``\b``, |
+|                                 | ``\s`` and ``\d`` dependent on the Unicode |
+|                                 | character database.                        |
++---------------------------------+--------------------------------------------+
 
 
 .. data:: I
@@ -594,6 +598,14 @@
    newline; without this flag, ``'.'`` will match anything *except* a newline.
 
 
+.. data:: U
+          UNICODE
+   :index:
+
+   Make ``\w``, ``\W``, ``\b``, ``\B``, ``\d``, ``\D``, ``\s`` and ``\S``
+   dependent on the Unicode character properties database.
+
+
 .. data:: X
           VERBOSE
    :noindex:


More information about the Python-checkins mailing list