Message101391
Seems consistent to me:
.match, .search and .finditer return a MatchObject whose .group() return the *entire matched string*. If you use .group(1) you'll get similar results to .findall() which returns a list of (possibly of tuples) of the captured groupings.
This is the findall equivalent (using a non-capturing group):
>>> re.findall('a(?:b)?', 'ab')
['ab'] |
|
Date |
User |
Action |
Args |
2010-03-20 19:53:07 | joncle | set | recipients:
+ joncle, jmfauth |
2010-03-20 19:53:07 | joncle | set | messageid: <1269114787.17.0.973033053212.issue8185@psf.upfronthosting.co.za> |
2010-03-20 19:53:05 | joncle | link | issue8185 messages |
2010-03-20 19:53:05 | joncle | create | |
|