Author mrabarnett
Recipients akitada, amaury.forgeotdarc, collinwinter, ezio.melotti, georg.brandl, giampaolo.rodola, gregory.p.smith, jacques, jaylogan, jhalcrow, jimjjewett, loewis, mark, moreati, mrabarnett, nneonneo, pitrou, r.david.murray, rsc, sjmachin, timehorse, vbr
Date 2010-11-20.01:43:19
SpamBayes Score 5.50552e-05
Marked as misclassified No
Message-id <1290217400.9.0.885089995885.issue2636@psf.upfronthosting.co.za>
In-reply-to
Content
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]).
History
Date User Action Args
2010-11-20 01:43:21mrabarnettsetrecipients: + 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:20mrabarnettsetmessageid: <1290217400.9.0.885089995885.issue2636@psf.upfronthosting.co.za>
2010-11-20 01:43:19mrabarnettlinkissue2636 messages
2010-11-20 01:43:19mrabarnettcreate