diff options
author | Georg Brandl <georg@python.org> | 2009-03-31 18:38:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-31 18:38:56 (GMT) |
commit | 6eabc24416d1ace6ea4d86793f0bc10f5e274955 (patch) | |
tree | 00146c7aab838b2c8b2d9084d70b22dcec8e01b1 | |
parent | a9efe6f65cff0a103a48f27c1336c7914b0bd57d (diff) | |
download | cpython-6eabc24416d1ace6ea4d86793f0bc10f5e274955.zip cpython-6eabc24416d1ace6ea4d86793f0bc10f5e274955.tar.gz cpython-6eabc24416d1ace6ea4d86793f0bc10f5e274955.tar.bz2 |
#5241: document missing U in regex howto.
-rw-r--r-- | Doc/howto/regex.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst index 994c0b9..eab23af 100644 --- a/Doc/howto/regex.rst +++ b/Doc/howto/regex.rst @@ -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: |