match.groups()
match = re.match(r"(\d+)(\w+)", "123abc") print(match.groups())
Output: ('123', 'abc')
('123', 'abc')
import re
re — Regular expression operations — Python 3.12.2 documentation