Serhiy Storchaka added the comment: This looks as one of existing issue about zero-length matches (issue1647489, issue10328). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22817> _______________________________________