diff options
author | Georg Brandl <georg@python.org> | 2009-03-31 18:41:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-31 18:41:03 (GMT) |
commit | ce9fbd3662f87f5e3192b0c4c1c39a6c4ef452ee (patch) | |
tree | 0552d5bde7dcfb3c66d072b71565d5aded8c1f83 | |
parent | 720b9d27260ed6ae1f96c3038700ab418c20dfdc (diff) | |
download | cpython-ce9fbd3662f87f5e3192b0c4c1c39a6c4ef452ee.zip cpython-ce9fbd3662f87f5e3192b0c4c1c39a6c4ef452ee.tar.gz cpython-ce9fbd3662f87f5e3192b0c4c1c39a6c4ef452ee.tar.bz2 |
#5241: document missing A in regex howto.
-rw-r--r-- | Doc/howto/regex.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst index 3ed5368..2623867 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:`ASCII`, :const:`A` | Makes several escapes like ``\w``, ``\b``, | +| | ``\s`` and ``\d`` match only on ASCII | +| | characters with the respective property. | ++---------------------------------+--------------------------------------------+ .. data:: I @@ -594,6 +598,15 @@ of each one. newline; without this flag, ``'.'`` will match anything *except* a newline. +.. data:: A + ASCII + :noindex: + + Make ``\w``, ``\W``, ``\b``, ``\B``, ``\s`` and ``\S`` perform ASCII-only + matching instead of full Unicode matching. This is only meaningful for + Unicode patterns, and is ignored for byte patterns. + + .. data:: X VERBOSE :noindex: |