match = re.match('Hello[ \t]*(.*)world', 'Hello Python world')>>>
This example searches for a substring that begins with the word “Hello,” followed by zero or more tabs or spaces, followed by arbitrary characters to be saved as a matched group,
(.) part is the ones where matches are found. match.groups() will list ones matched where (.) is located.
Share this highlighthttp://www.safaribooksonline.com/a/learning-python-5th/19659123/