[issue14237] Special sequences \A and \Z don't work in character set []

py.user report at bugs.python.org
Fri Mar 9 07:11:14 CET 2012


New submission from py.user <port139 at yandex.ru>:

>>> import re
>>> re.search(r'\Ac\Z', 'c')
<_sre.SRE_Match object at 0xb74cff38>
>>> re.search(r'[\A]c[\Z]', 'c')
>>> re.purge()
>>> re.search(r'[\A]c[\Z]', 'c', re.DEBUG)
in 
  at at_beginning_string
literal 99 
in 
  at at_end_string
>>>

----------
components: Regular Expressions
messages: 155208
nosy: ezio.melotti, mrabarnett, py.user
priority: normal
severity: normal
status: open
title: Special sequences \A and \Z don't work in character set []
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14237>
_______________________________________


More information about the Python-bugs-list mailing list