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 tzot
Recipients georg.brandl, tzot
Date 2010-10-19.07:50:12
SpamBayes Score 0.0038758172
Marked as misclassified No
Message-id <1287474614.93.0.792419717728.issue10139@psf.upfronthosting.co.za>
In-reply-to
Content
As I see it, it's more like:

>>> re.search('a.*c|a.*|.*c', 'abc').group()

producing 'bc' instead of 'abc'. Substitute "(?<=^A)" for "a" and "(?=Z$)" for "c" in the pattern above.

In your example, the first part ('bc') does not match the whole string ('abc'). In my example, the first part ('(?<=^A).*(?=Z$)') matches the whole string ('A***Z').
History
Date User Action Args
2010-10-19 07:50:15tzotsetrecipients: + tzot, georg.brandl
2010-10-19 07:50:14tzotsetmessageid: <1287474614.93.0.792419717728.issue10139@psf.upfronthosting.co.za>
2010-10-19 07:50:13tzotlinkissue10139 messages
2010-10-19 07:50:12tzotcreate