This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mrabarnett
Recipients akuchling, amaury.forgeotdarc, collinwinter, ezio.melotti, georg.brandl, jimjjewett, mark, moreati, mrabarnett, nneonneo, pitrou, rsc, timehorse
Date 2009-03-01.01:42:12
SpamBayes Score 0.002051456
Marked as misclassified No
Message-id <1235871769.82.0.676835613841.issue2636@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-03-01 01:42:51mrabarnettsetrecipients: + mrabarnett, akuchling, georg.brandl, collinwinter, jimjjewett, amaury.forgeotdarc, pitrou, nneonneo, rsc, timehorse, mark, ezio.melotti, moreati
2009-03-01 01:42:49mrabarnettsetmessageid: <1235871769.82.0.676835613841.issue2636@psf.upfronthosting.co.za>
2009-03-01 01:42:47mrabarnettlinkissue2636 messages
2009-03-01 01:42:45mrabarnettcreate