Commit 4049ce08 authored by Georg Brandl's avatar Georg Brandl

#6235: ASCII also affects \[dD] escapes.

parent ed2a1db5
...@@ -479,9 +479,9 @@ form. ...@@ -479,9 +479,9 @@ form.
.. data:: A .. data:: A
ASCII ASCII
Make ``\w``, ``\W``, ``\b``, ``\B``, ``\s`` and ``\S`` perform ASCII-only Make ``\w``, ``\W``, ``\b``, ``\B``, ``\d``, ``\D``, ``\s`` and ``\S``
matching instead of full Unicode matching. This is only meaningful for perform ASCII-only matching instead of full Unicode matching. This is only
Unicode patterns, and is ignored for byte patterns. meaningful for Unicode patterns, and is ignored for byte patterns.
Note that for backward compatibility, the :const:`re.U` flag still Note that for backward compatibility, the :const:`re.U` flag still
exists (as well as its synonym :const:`re.UNICODE` and its embedded exists (as well as its synonym :const:`re.UNICODE` and its embedded
......
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