PyDocs

Nav

Text Processing Services

Match.groups

re

method of Match
  • Match.groups(default=None)
Return a tuple containing all the subgroups of the match, from 1.

default
  Is used for groups that did not participate in the match.
1 Example
>>> m = re.search(r"(\d+)\.(\d+)", "24.1632")
>>> m.groups()
('24', '1632')
from the Python docs
See Also
No see-alsos for re/Match.groups
0 Notes
No notes for Match.groups