Message221601
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. |
|
Date |
User |
Action |
Args |
2014-06-26 10:25:14 | mrabarnett | set | recipients:
+ mrabarnett, ezio.melotti, py.user, BreamoreBoy, serhiy.storchaka |
2014-06-26 10:25:14 | mrabarnett | set | messageid: <1403778314.58.0.841579410662.issue14460@psf.upfronthosting.co.za> |
2014-06-26 10:25:14 | mrabarnett | link | issue14460 messages |
2014-06-26 10:25:14 | mrabarnett | create | |
|