Ezio Melotti <ezio.melo...@gmail.com> added the comment:

Actually '}' is not a metachar, the metachars should be only "|()[{.+*?^$\".

>>> re.match('^a+(}+)b+$', 'aaaa}}}}}bbb')
<_sre.SRE_Match object at 0xb77aa860>
>>> re.match('^a+(}+)b+$', 'aaaa}}}}}bbb').group(1)
'}}}}}'

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11239>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to