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 serhiy.storchaka
Recipients danielhrisca, serhiy.storchaka
Date 2017-12-14.08:10:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513239033.54.0.213398074469.issue32319@psf.upfronthosting.co.za>
In-reply-to
Content
No, this is not how fullmatch() works. Otherwise there wouldn't be need to add it into the stdlib. You could just check end() of the result.

fullmatch() acts like match() with added \Z. But if the pattern contains multiple alternates you need to add \Z at the end of every branch (r"foo\Z|bar\Z") or wrap the entire patch in a non-capturing group (r"(?:foo|bar)\Z").
History
Date User Action Args
2017-12-14 08:10:33serhiy.storchakasetrecipients: + serhiy.storchaka, danielhrisca
2017-12-14 08:10:33serhiy.storchakasetmessageid: <1513239033.54.0.213398074469.issue32319@psf.upfronthosting.co.za>
2017-12-14 08:10:33serhiy.storchakalinkissue32319 messages
2017-12-14 08:10:33serhiy.storchakacreate