Message82950
issue2636-features-5.diff includes:
Bugfixes
Added \G anchor (from Perl).
\G is the anchor at the start of a search, so re.search(r'\G(\w)') is
the same as re.match(r'(\w)').
re.findall normally performs a series of searches, each starting where
the previous one finished, but if the pattern starts with \G then it's
like a series of matches:
>>> re.findall(r'\w', 'abc def')
['a', 'b', 'c', 'd', 'e', 'f']
>>> re.findall(r'\G\w', 'abc def')
['a', 'b', 'c']
Notice how it failed to match at the space, so no more results. |
|
Date |
User |
Action |
Args |
2009-03-01 01:42:51 | mrabarnett | set | recipients:
+ mrabarnett, akuchling, georg.brandl, collinwinter, jimjjewett, amaury.forgeotdarc, pitrou, nneonneo, rsc, timehorse, mark, ezio.melotti, moreati |
2009-03-01 01:42:49 | mrabarnett | set | messageid: <1235871769.82.0.676835613841.issue2636@psf.upfronthosting.co.za> |
2009-03-01 01:42:47 | mrabarnett | link | issue2636 messages |
2009-03-01 01:42:45 | mrabarnett | create | |
|