Message345569
Python 3.9.0a0
[GCC 7.3.0] on linux
>>> import re
>>> find_unsafe_bytes = re.compile(b'[^\w@%+=:,./-]').search
<stdin>:1: SyntaxWarning: invalid escape sequence \w
when removing \w, all the tests pass
(my regex knowledge is close to None.)
"\w stands for "word character". It always matches the ASCII characters [A-Za-z0-9_]"
replace \w with A-Za-z0-9_ ?? (all the tests pass) |
|
Date |
User |
Action |
Args |
2019-06-14 09:56:39 | aldwinaldwin | set | recipients:
+ aldwinaldwin, r.david.murray, martin.panter, The Compiler, willingc, Nan Wu, Jonas Thiem, xtreak |
2019-06-14 09:56:39 | aldwinaldwin | set | messageid: <1560506199.62.0.439765568631.issue25567@roundup.psfhosted.org> |
2019-06-14 09:56:39 | aldwinaldwin | link | issue25567 messages |
2019-06-14 09:56:39 | aldwinaldwin | create | |
|