[issue7132] Regexp: capturing groups in repetitions

Philippe Verdy report at bugs.python.org
Wed Oct 14 22:36:51 CEST 2009


Philippe Verdy <verdy_p at wanadoo.fr> added the comment:

I'd like to add that the same behavior should also affect the span(index) 
method of MatchObject, that should also not just return a single (start, 
end) pair, but that should in this case return a list of pairs, one for 
each occurence, when the "R" compilation flag is specified.

This also means that the regular expression compilation flag R should be 
supported as these constants:
Regexp.R, or Regexp.REPETITIONS

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7132>
_______________________________________


More information about the Python-bugs-list mailing list