Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce9fbd3

Browse files
committed
#5241: document missing A in regex howto.
1 parent 720b9d2 commit ce9fbd3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Doc/howto/regex.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ of each one.
540540
| :const:`VERBOSE`, :const:`X` | Enable verbose REs, which can be organized |
541541
| | more cleanly and understandably. |
542542
+---------------------------------+--------------------------------------------+
543+
| :const:`ASCII`, :const:`A` | Makes several escapes like ``\w``, ``\b``, |
544+
| | ``\s`` and ``\d`` match only on ASCII |
545+
| | characters with the respective property. |
546+
+---------------------------------+--------------------------------------------+
543547

544548

545549
.. data:: I
@@ -594,6 +598,15 @@ of each one.
594598
newline; without this flag, ``'.'`` will match anything *except* a newline.
595599

596600

601+
.. data:: A
602+
ASCII
603+
:noindex:
604+
605+
Make ``\w``, ``\W``, ``\b``, ``\B``, ``\s`` and ``\S`` perform ASCII-only
606+
matching instead of full Unicode matching. This is only meaningful for
607+
Unicode patterns, and is ignored for byte patterns.
608+
609+
597610
.. data:: X
598611
VERBOSE
599612
:noindex:

0 commit comments

Comments
 (0)