Message221601
| Author |
mrabarnett |
| Recipients |
BreamoreBoy, ezio.melotti, mrabarnett, py.user, serhiy.storchaka |
| Date |
2014年06月26日.10:25:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1403778314.58.0.841579410662.issue14460@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|