[docs] [issue11239] regexp-howto - add missing } to metachars
Ezio Melotti
report at bugs.python.org
Sun Mar 6 11:12:26 CET 2011
Ezio Melotti <ezio.melotti at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11239>
_______________________________________
More information about the docs
mailing list