Matthew Barnett <[email protected]> added the comment:
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]).
----------
Added file: http://bugs.python.org/file19651/issue2636-20101120.zip
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue2636>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com