Message227063
| Author | serhiy.storchaka |
|---|---|
| Recipients | ezio.melotti, mrabarnett, pitrou, r.david.murray, serhiy.storchaka, vstinner, yselivanov |
| Date | 2014-09-18.20:36:01 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1411072562.8.0.812199434108.issue22437@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
There is two reasons for this limitation. First reason is mentioned by David. There is no syntax to backreference a group with number > 99 (but there is a syntax for conditional groups and for substitutions). Second reason is that current implementation of regexp engine uses an array of constant size for groups. Here is a patch which increases static limit to 1000 groups. It also allows to specify arbitrary group number in form of "(?P=number)". This is conformed to the syntax of conditional groups and for substitutions. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-09-18 20:36:02 | serhiy.storchaka | set | recipients: + serhiy.storchaka, pitrou, vstinner, ezio.melotti, mrabarnett, r.david.murray, yselivanov |
| 2014-09-18 20:36:02 | serhiy.storchaka | set | messageid: <1411072562.8.0.812199434108.issue22437@psf.upfronthosting.co.za> |
| 2014-09-18 20:36:02 | serhiy.storchaka | link | issue22437 messages |
| 2014-09-18 20:36:02 | serhiy.storchaka | create | |