Commit 6eabc244 authored by Georg Brandl's avatar Georg Brandl

#5241: document missing U in regex howto.

parent a9efe6f6
...@@ -540,6 +540,10 @@ of each one. ...@@ -540,6 +540,10 @@ of each one.
| :const:`VERBOSE`, :const:`X` | Enable verbose REs, which can be organized | | :const:`VERBOSE`, :const:`X` | Enable verbose REs, which can be organized |
| | more cleanly and understandably. | | | 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 .. data:: I
...@@ -594,6 +598,14 @@ of each one. ...@@ -594,6 +598,14 @@ of each one.
newline; without this flag, ``'.'`` will match anything *except* a newline. 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 .. data:: X
VERBOSE VERBOSE
:noindex: :noindex:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment