[issue32998] regular expression regression in python 3.7
mike bayer
report at bugs.python.org
Mon Mar 5 11:32:48 EST 2018
mike bayer <mike_mp at zzzcomputing.com> added the comment:
for those watching this would be the findall() case which is consistent between pythons:
import re
for reg in [
'VARCHAR(30) COLLATE "en_US"',
'VARCHAR(30)'
]:
print(re.findall(r'(?: COLLATE.*)?$', reg))
output (all pythons):
[' COLLATE "en_US"', '']
['']
so yes there are two matches for one and only one for the other.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32998>
_______________________________________
More information about the Python-bugs-list
mailing list