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 Anselmo Melo, bc, mgorny, mrabarnett, xtreak
Date 2020-03-03.16:01:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583251275.74.0.23072872731.issue38826@roundup.psfhosted.org>
In-reply-to
Content
A smaller change to the regex would be to replace the "(?:.*,)*" with "(?:[^,]*,)*".

I'd also suggest using a raw string instead:

rx = re.compile(r'''(?:[^,]*,)*[ \t]*([^ \t]+)[ \t]+realm=(["']?)([^"']*)\2''', re.I)
History
Date User Action Args
2020-03-03 16:01:15mrabarnettsetrecipients: + mrabarnett, mgorny, xtreak, Anselmo Melo, bc
2020-03-03 16:01:15mrabarnettsetmessageid: <1583251275.74.0.23072872731.issue38826@roundup.psfhosted.org>
2020-03-03 16:01:15mrabarnettlinkissue38826 messages
2020-03-03 16:01:15mrabarnettcreate