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 adiba, ezio.melotti, mrabarnett
Date 2019-01-04.01:13:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546564415.88.0.465914297935.issue35653@roundup.psfhosted.org>
In-reply-to
Content
Look at the spans of the groups:

>>> import re
>>> re.search(r'^(?:(\d*)(\D*))*$', "42AZ").span(1)
(4, 4)
>>> re.search(r'^(?:(\d*)(\D*))*$', "42AZ").span(2)
(4, 4)

They're telling you that the groups are matching twice (because of the outer *). The first time, they match ('42', 'AZ'); the second time, they match ('', '') at the end of the string.

Not a bug.
History
Date User Action Args
2019-01-04 01:13:38mrabarnettsetrecipients: + mrabarnett, ezio.melotti, adiba
2019-01-04 01:13:35mrabarnettsetmessageid: <1546564415.88.0.465914297935.issue35653@roundup.psfhosted.org>
2019-01-04 01:13:35mrabarnettlinkissue35653 messages
2019-01-04 01:13:35mrabarnettcreate