[issue14510] Regular Expression "+" perform wrong repeat

YunJian report at bugs.python.org
Fri Apr 6 15:38:38 CEST 2012


YunJian <tld5yj at yahoo.com.cn> added the comment:

Well, maybe I had never understood this though I use RE oftenly, this is the first time I met this and in my mind capture should not perform like this, thank you very much!

________________________________
 发件人: Matthew Barnett <report at bugs.python.org>
收件人: tld5yj at yahoo.com.cn 
发送日期: 2012年4月6日, 星期五, 上午 12:08
主题: [issue14510] Regular Expression "+" perform wrong repeat

Matthew Barnett <python at mrabarnett.plus.com> added the comment:

If a capture group is repeated, as in r'(\$.)+', only its last match is returned.

----------

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

----------

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


More information about the Python-bugs-list mailing list