Grouping
Groups are defined using parentheses
- E.g.
>>> regex = re.compile('(ab*)(c+)(def)')
>>> match = regex.match("abbbdefhhggg")
>>> print match
None
>>> match = regex.match("abbbcdefhhggg")
>>> print match
<_sre.SRE_Match object at 0x00A35A10>
>>> match.groups()
('abbb', 'c', 'def')