[issue37594] re does not honor matching trailing multiple periods
Serhiy Storchaka
report at bugs.python.org
Sun Jul 14 16:00:43 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
This change was intentional and documented. It fixed old bug in the Python implementation of RE and removed the discrepancy with other RE engines.
The pattern r'\.*$' matches not only a sequence of dots at the of the line, but also an empty string at the end of line. If this is not what you want, use r'\.+$'.
----------
nosy: +serhiy.storchaka
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37594>
_______________________________________
More information about the Python-bugs-list
mailing list