Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: 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. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com