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 effbot, glchapman, mrabarnett
Date 2009-03-06.03:11:24
SpamBayes Score 0.0007615196
Marked as misclassified No
Message-id <1236309088.77.0.240637807251.issue814253@psf.upfronthosting.co.za>
In-reply-to
Content
As part of issue #2636 group references now work in lookbehinds.

However, your example:

    (?<=(...)\1)abc

will fail but:

    (?<=\1(...))abc

will succeed.

Why? Well, in lookbehinds it searches backwards. In the first regex it
sees the group reference before the capture, whereas in the second it
sees the group reference after the capture. (Hope that's clear! :-))
History
Date User Action Args
2009-03-06 03:11:29mrabarnettsetrecipients: + mrabarnett, effbot, glchapman
2009-03-06 03:11:28mrabarnettsetmessageid: <1236309088.77.0.240637807251.issue814253@psf.upfronthosting.co.za>
2009-03-06 03:11:25mrabarnettlinkissue814253 messages
2009-03-06 03:11:24mrabarnettcreate