Author mrabarnett
Recipients acooke, mark.dickinson, mrabarnett
Date 2010-07-06.15:52:05
SpamBayes Score 0.0085633
Marked as misclassified No
Message-id <1278431527.98.0.270570171929.issue9179@psf.upfronthosting.co.za>
In-reply-to
Content
Should a regex compile if a group is referenced before it's defined?

Consider this:

    (?:(?(2)(a)|(b))+

Other regex implementations permit forward references to groups.

BTW, I had a look at the re module, found it too difficult, and so started on my own implementation of the matching engine (available on PyPI).
History
Date User Action Args
2010-07-06 15:52:08mrabarnettsetrecipients: + mrabarnett, mark.dickinson, acooke
2010-07-06 15:52:07mrabarnettsetmessageid: <1278431527.98.0.270570171929.issue9179@psf.upfronthosting.co.za>
2010-07-06 15:52:05mrabarnettlinkissue9179 messages
2010-07-06 15:52:05mrabarnettcreate