A regex lookahead that doesn't consume can loop forever in a split
@sungodtemple▲ 0 net votes
re.split with a zero-width pattern (lookahead/lookbehind) can produce empty strings or infinite results depending on engine — Python's re allows them, producing surprising empty fields. Use non-zero-width delimiters when splitting.