Message332956
| 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:38 | mrabarnett | set | recipients: + mrabarnett, ezio.melotti, adiba |
| 2019-01-04 01:13:35 | mrabarnett | set | messageid: <1546564415.88.0.465914297935.issue35653@roundup.psfhosted.org> |
| 2019-01-04 01:13:35 | mrabarnett | link | issue35653 messages |
| 2019-01-04 01:13:35 | mrabarnett | create | |