[docs] [issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

John Machin report at bugs.python.org
Sun Jan 29 22:50:46 CET 2012

John Machin <sjmachin at lexicon.net> added the comment:

Whoops: "normal Python rules for backslash escapes" should have had a note "but revert to the C behaviour of stripping the \ from unrecognised escapes" which is what re appears to do in its own \ handling.


Python tracker <report at bugs.python.org>

More information about the docs mailing list