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 ammar2, boris, ezio.melotti, mrabarnett, serhiy.storchaka
Date 2019-11-01.07:20:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572592802.62.0.672249649115.issue38660@roundup.psfhosted.org>
In-reply-to
Content
These two regexes are not the same.

>>> re.compile('([-_.a-zA-Z0-9]+)').match('ä')
>>> re.compile(r'([-\w.]+)').match('ä')
<re.Match object; span=(0, 1), match='ä'>

As Ammar said checking that two regexes always matches the same is very difficult problem. It is the problem of determining if two programs are the same.
History
Date User Action Args
2019-11-01 07:20:02serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, ammar2, boris
2019-11-01 07:20:02serhiy.storchakasetmessageid: <1572592802.62.0.672249649115.issue38660@roundup.psfhosted.org>
2019-11-01 07:20:02serhiy.storchakalinkissue38660 messages
2019-11-01 07:20:02serhiy.storchakacreate