Message403810
"\W" regex pattern, when used with `re.ASCII`, is expected to have the same behavior as "[^a-zA-Z0-9_]" (see [1]).
For example, the following `sub()` call
```
>>> re.sub('\W', '', '½ a', re.ASCII)
'½a'
```
should return the same as this one:
```
>>> re.sub('[^a-zA-Z0-9_]', '', '½ a', re.ASCII)
'a'
```
But it does not.
[1] https://docs.python.org/3/library/re.html#regular-expression-syntax |
|
| Date |
User |
Action |
Args |
| 2021-10-13 09:10:37 | owentrigueros | set | recipients:
+ owentrigueros, ezio.melotti, mrabarnett |
| 2021-10-13 09:10:37 | owentrigueros | set | messageid: <[email protected]> |
| 2021-10-13 09:10:37 | owentrigueros | link | issue45458 messages |
| 2021-10-13 09:10:37 | owentrigueros | create | |
|