Python Regex Split String Into Array Of Objects In Js W3schools