>>> x=r'(\D*)(\d*)(.*)hello'
>>> m=re.match(x,y )
>>> m.groups()
('xxxxxx', '23434', 'yyy111yyyzzz ')
>>> m.group(0)
'xxxxxx23434yyy111yyyzzz hello'
>>> m.group(1)
'xxxxxx'
>>> m.group(2)
'23434'
>>> m.group(3)
'yyy111yyyzzz '
>>> m.groups()
('xxxxxx', '23434', 'yyy111yyyzzz ')
>>>