[docs] [issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.
report at bugs.python.org
Sun Jan 29 15:35:57 CET 2012
Georg Brandl <georg at python.org> added the comment:
r'[\w]' also matches word chars. I find that a very useful property, since you can easily build classes like '[\w.]' It's also impossible to change this without breaking lots of regexes. It's also explicitly documented, although IMO it's not clear it extends to \A and \Z, since it talks about "character classes". So this is a docs issue.
assignee: -> docs at python
nosy: +docs at python, georg.brandl
Python tracker <report at bugs.python.org>
More information about the docs