SilentGhost <ghost....@runbox.com> added the comment:
Fabrod, this has nothing to do with the square brackets. It is your assumption that the return value should be the same that is wrong. Cf.: >>> re.findall(r'a.+', 'abc') ['abc'] >>> re.findall(r'a(.+)', 'abc') ['bc'] This is the correct documented behaviour. ---------- nosy: +SilentGhost resolution: out of date -> not a bug _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36349> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com