Message140152
| Author | mrabarnett |
|---|---|
| Recipients | akitada, akoumjian, alex, amaury.forgeotdarc, belopolsky, brian.curtin, collinwinter, davide.rizzo, ezio.melotti, georg.brandl, giampaolo.rodola, gregory.p.smith, jacques, jaylogan, jhalcrow, jimjjewett, loewis, mark, moreati, mrabarnett, nneonneo, pitrou, r.david.murray, ronnix, rsc, sjmachin, stiv, timehorse, vbr, zdwiel |
| Date | 2011-07-11.17:32:07 |
| SpamBayes Score | 0.0002478547 |
| Marked as misclassified | No |
| Message-id | <1310405528.55.0.590514791871.issue2636@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The new regex imlementation is hosted here: https://code.google.com/p/mrab-regex-hg/ The span of m['a_thing'] is m.span('a_thing'), if that helps. The named groups are listed on the pattern object, which can be accessed via m.re: >>> m.re <_regex.Pattern object at 0x0161DE30> >>> m.re.groupindex {'another_thing': 3, 'a_thing': 1} so you can use that to create a reverse dict to go from the index to the name or None. (Perhaps the pattern object should have such a .group_name attribute.) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-07-11 17:32:08 | mrabarnett | set | recipients: + mrabarnett, loewis, georg.brandl, collinwinter, gregory.p.smith, jimjjewett, sjmachin, amaury.forgeotdarc, belopolsky, pitrou, nneonneo, giampaolo.rodola, rsc, timehorse, mark, vbr, ezio.melotti, jaylogan, akitada, moreati, alex, r.david.murray, jacques, brian.curtin, zdwiel, jhalcrow, stiv, davide.rizzo, ronnix, akoumjian |
| 2011-07-11 17:32:08 | mrabarnett | set | messageid: <1310405528.55.0.590514791871.issue2636@psf.upfronthosting.co.za> |
| 2011-07-11 17:32:08 | mrabarnett | link | issue2636 messages |
| 2011-07-11 17:32:07 | mrabarnett | create | |