mike bayer <mike...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32998> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com