Definition:
Back to the main index of this glossary
>>> import re
>>> u = 'Four score and seven years ago, our forefathers...'
>>> y = re.compile('a(?:[rg]).*(?P<another>for(?:e))')
>>> z = re.search(y,u)
>>> print z.group()
ars ago, our fore
>>> print z.group(0)
ars ago, our fore
>>> print z.group(1)
fore
>>> print z.groups()
('fore',)
>>> print z.group('another')
fore
Back to the main index of this glossary
