Message157664
| Author |
tld5yj |
| Recipients |
ezio.melotti, mrabarnett, tld5yj |
| Date |
2012年04月06日.13:38:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333719513.85782.YahooMailNeo@web15301.mail.cnb.yahoo.com> |
| In-reply-to |
<1333642106.13.0.523608559084.issue14510@psf.upfronthosting.co.za> |
| Content |
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@bugs.python.org>
收件人: tld5yj@yahoo.com.cn
发送日期: 2012年4月6日, 星期五, 上午 12:08
主题: [issue14510] Regular Expression "+" perform wrong repeat
Matthew Barnett <python@mrabarnett.plus.com> added the comment:
If a capture group is repeated, as in r'(\$.)+', only its last match is returned.
----------
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14510>
_______________________________________ |
|