Message376736
The arguments are: re.sub(pattern, repl, string, count=0, flags=0).
Therefore:
re.sub("pattern","replace", txt, re.IGNORECASE | re.DOTALL)
is passing re.IGNORECASE | re.DOTALL as the count, not the flags.
It's in the documentation and the interactive help. |
|
| Date |
User |
Action |
Args |
| 2020-09-11 18:10:33 | mrabarnett | set | recipients:
+ mrabarnett, ezio.melotti, bayat |
| 2020-09-11 18:10:33 | mrabarnett | set | messageid: <1599847833.86.0.677813750366.issue41764@roundup.psfhosted.org> |
| 2020-09-11 18:10:33 | mrabarnett | link | issue41764 messages |
| 2020-09-11 18:10:33 | mrabarnett | create | |
|