Message355793
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. |
|
Date |
User |
Action |
Args |
2019-11-01 07:20:02 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ezio.melotti, mrabarnett, ammar2, boris |
2019-11-01 07:20:02 | serhiy.storchaka | set | messageid: <1572592802.62.0.672249649115.issue38660@roundup.psfhosted.org> |
2019-11-01 07:20:02 | serhiy.storchaka | link | issue38660 messages |
2019-11-01 07:20:02 | serhiy.storchaka | create | |
|