Hand roll a parser for ABABABBAB => ["ABABAB","AB"]