Message121589
issue2636-20101120.zip is a new version of the regex module.
The match object now supports additional methods which return information on all the successful matches of a repeated capture group.
The API was inspired by that of .Net:
matchobject.captures([group1, ...])
Returns a tuple of the strings matched in a group or groups. Compare with matchobject.group([group1, ...]).
matchobject.starts([group])
Returns a tuple of the start positions. Compare with matchobject.start([group]).
matchobject.ends([group])
Returns a tuple of the end positions. Compare with matchobject.end([group]).
matchobject.spans([group])
Returns a tuple of the spans. Compare with matchobject.span([group]). |
|
Date |
User |
Action |
Args |
2010-11-20 01:43:21 | mrabarnett | set | recipients:
+ mrabarnett, loewis, georg.brandl, collinwinter, gregory.p.smith, jimjjewett, sjmachin, amaury.forgeotdarc, pitrou, nneonneo, giampaolo.rodola, rsc, timehorse, mark, vbr, ezio.melotti, jaylogan, akitada, moreati, r.david.murray, jacques, jhalcrow |
2010-11-20 01:43:20 | mrabarnett | set | messageid: <1290217400.9.0.885089995885.issue2636@psf.upfronthosting.co.za> |
2010-11-20 01:43:19 | mrabarnett | link | issue2636 messages |
2010-11-20 01:43:19 | mrabarnett | create | |
|