{"ScriptPreparationCode":"const strs = [\r\n \u0022tag:cool\u0022,\r\n \u0022a8798d75-18ed-473b-a28b-0b756dd99151\u0022,\r\n \u0022asdf\u0022,\r\n \u0022othertag:\u0022,\r\n \u0022asdf:qwer:test\u0022,\r\n \u0022:hmm\u0022,\r\n \u0022:\u0022,\r\n]","TestCases":[{"Name":"split","Code":"function doSplit(str) {\r\n const parts = str.split(\u0027:\u0027)\r\n if (parts.length !== 2) {\r\n return null\r\n }\r\n \r\n return parts[0]\r\n}\r\n\r\nfor (const str of strs) {\r\n doSplit(str)\r\n}","IsDeferred":false},{"Name":"rgx","Code":"const rgx = /(?\u003Ctag\u003E[a-z]\u002B):(.*)?/\r\nfunction doRgx(str) {\r\n const res = str.match(rgx)\r\n if (!res) {\r\n return null\r\n }\r\n\r\n return res.groups?.tag ?? null\r\n}\r\n\r\nfor (const str of strs) {\r\n doRgx(str)\r\n}","IsDeferred":false}]}