Message327711
Yes, this is an intended change. Your pattern matches an empty string at the end of the input string. It was a bug in earlier Python versions that re.sub() didn't replace empty matches adjacent to a previous non-empty match.
It is not clear what is the purpose of your code, but adding anchors or replacing * with + usually helps. |
|
Date |
User |
Action |
Args |
2018-10-14 14:08:48 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ezio.melotti, mrabarnett, xtreak, purificant |
2018-10-14 14:08:48 | serhiy.storchaka | set | messageid: <1539526128.29.0.788709270274.issue34982@psf.upfronthosting.co.za> |
2018-10-14 14:08:48 | serhiy.storchaka | link | issue34982 messages |
2018-10-14 14:08:48 | serhiy.storchaka | create | |
|