[issue14510] Regular Expression "+" perform wrong repeat

2012-04-06 Thread YunJian
: tld...@yahoo.com.cn 发送日期: 2012年4月6日, 星期五, 上午 9:41 主题: [issue14510] Regular Expression "+" perform wrong repeat Ezio Melotti added the comment: ['$b$B', '$B$b'] -- assignee:  -> ezio.melotti resolution:  -> invalid stage:  -&g

[issue14510] Regular Expression "+" perform wrong repeat

2012-04-06 Thread YunJian
年4月6日, 星期五, 上午 12:08 主题: [issue14510] Regular Expression "+" perform wrong repeat Matthew Barnett added the comment: If a capture group is repeated, as in r'(\$.)+', only its last match is returned. -- ___ Python tracker <

[issue14510] Regular Expression "+" perform wrong repeat

2012-04-05 Thread Ezio Melotti
Ezio Melotti added the comment: >>> re.findall(r'((?:\$.)+)', 'This $b$B is also a variable, but it\'s not >>> $B$b') ['$b$B', '$B$b'] -- assignee: -> ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Pyt

[issue14510] Regular Expression "+" perform wrong repeat

2012-04-05 Thread Matthew Barnett
Matthew Barnett added the comment: If a capture group is repeated, as in r'(\$.)+', only its last match is returned. -- ___ Python tracker ___ _

[issue14510] Regular Expression "+" perform wrong repeat

2012-04-05 Thread YunJian
New submission from YunJian : Regular expression perform wrong result, I use regular expression r'(\$.)+' try to match "$B$b" or something like that, but the script only give back "$b", r'(\$.){1,}', r'(\$.){2}' performed the same, you can take the file I attached for reference and run it, I t