This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2014-06-26 10:25:14mrabarnettsetrecipients: + mrabarnett, ezio.melotti, py.user, BreamoreBoy, serhiy.storchaka
2014-06-26 10:25:14mrabarnettsetmessageid: <1403778314.58.0.841579410662.issue14460@psf.upfronthosting.co.za>
2014-06-26 10:25:14mrabarnettlinkissue14460 messages
2014-06-26 10:25:14mrabarnettcreate