]> granicus.if.org Git - python/commitdiff
#5241: document missing U in regex howto.
authorGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 18:38:56 +0000 (18:38 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 18:38:56 +0000 (18:38 +0000)
Doc/howto/regex.rst

index 994c0b92691be2300c3c1689acd49f3131c683a8..eab23af5756cf58470128b3b47eda1ef15513194 100644 (file)
@@ -540,6 +540,10 @@ of each one.
 | :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 @@ of each one.
    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: