Author tim.peters
Recipients gvanrossum, mrabarnett, pitrou, serhiy.storchaka, tim.peters
Date 2012-10-14.02:53:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350183194.44.0.445184224545.issue16203@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy, I expect this is easy to implement _inside_ the regexp engine.  The complications come from trying to do it outside the engine.  But even there, wrapping the original regexp <re> in

(?:<re>)\Z

is at worst very close.  The only insecurity with that I've thought of concerns the doc's warnings about what can appear before an inline re.VERBOSE flag.  It probably works fine even if <re> does begin with  (?...x....).
History
Date User Action Args
2012-10-14 02:53:14tim.peterssetrecipients: + tim.peters, gvanrossum, pitrou, mrabarnett, serhiy.storchaka
2012-10-14 02:53:14tim.peterssetmessageid: <1350183194.44.0.445184224545.issue16203@psf.upfronthosting.co.za>
2012-10-14 02:53:14tim.peterslinkissue16203 messages
2012-10-14 02:53:13tim.peterscreate