The groups () method in regular expressions in Python
https://stackoverflow.com/questions/20202365/the-groups-method-in-regular-expressions-in-python
WebNov 25, 2013 · 3 Answers. Sorted by: 21. For re details consult docs. In your case: group(0) stands for all matched string, hence abc, that is 3 groups a, b and c. group(i) stands for i'th group, and citing documentation. If a group matches multiple times, only the last match is accessible. hence group(1) stands for last match, c.
DA: 14 PA: 60 MOZ Rank: 49