Message 94025 - Python tracker (original) (raw)
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