Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment:
The expression is a repeated alternative where the first alternative is a repeat. Repeated repeats can result in a lot of attempts and backtracking and should be avoided. Try this instead: (0|1(01*0)*1)+ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46825> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com