消息 [221601]
Lookarounds can contain capture groups:
>>> import re
>>> re.search(r'a(?=(.))', 'ab').groups()
('b',)
>>> re.search(r'(?<=(.))b', 'ab').groups()
('a',)
so lookarounds that are optional or can have no repeats might have a use.
I'm not sure whether it's useful to repeat them more than once, but that's another matter.
I'd say that it's not a bug. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2014-06-26 10:25:14 | mrabarnett | 修改 | recipients:
+ mrabarnett, ezio.melotti, py.user, BreamoreBoy, serhiy.storchaka |
| 2014-06-26 10:25:14 | mrabarnett | 修改 | messageid: <1403778314.58.0.841579410662.issue14460@psf.upfronthosting.co.za> |
| 2014-06-26 10:25:14 | mrabarnett | 链接 | issue14460 messages |
| 2014-06-26 10:25:14 | mrabarnett | 创建 | |
|