This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bsaner
Recipients bsaner
Date 2019-07-14.19:27:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563132450.99.0.557456146194.issue37594@roundup.psfhosted.org>
In-reply-to
Content
(Sorry for the title; not quite sure how to summarize this)

SO! Have I got an interesting one for you.

ISSUE:
In release 3.7.3 (and possibly later), the re module, if one has a string e.g. 'a.b.', a pattern such as '\.*$' will successfully *match* any number of multiple trailing periods. HOWEVER, when attempting to substitute those with actual character(s), it chokes. See attached poc.py

NOTES:
- This *is a regression* from 2.6.6, 2.7.16, and 3.6.7 (other releases were not tested). This behaviour does not occur on those versions.
History
Date User Action Args
2019-07-14 19:27:31bsanersetrecipients: + bsaner
2019-07-14 19:27:30bsanersetmessageid: <1563132450.99.0.557456146194.issue37594@roundup.psfhosted.org>
2019-07-14 19:27:30bsanerlinkissue37594 messages
2019-07-14 19:27:30bsanercreate