New submission from brent s. <brent.sa...@gmail.com>:

(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.

----------
components: Library (Lib)
files: example.py
messages: 347933
nosy: bsaner
priority: normal
severity: normal
status: open
title: re does not honor matching trailing multiple periods
versions: Python 3.7
Added file: https://bugs.python.org/file48481/example.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37594>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to