一个全新、更强大的正则引擎,期望取代原有的 re 库。
递归匹配和交错匹配
>>> regex.findall(r'(<(?:[^<>]++|(?1))*>)', '<a>, <b <c>>', overlapped=True) ['<a>', '<b <c>>', '<c>']