{"ScriptPreparationCode":"var ip = \u00272001:0DB8:85A3:00:1223:1234:4567:1234\u0027;\r\nvar ipV6RegExp = /(\\w{1,4}:\\w{1,4}:\\w{1,4}:\\w{1,4}):(\\w{1,4}:\\w{1,4}:\\w{1,4}:\\w{1,4})/;","TestCases":[{"Name":"Using regex","Code":"ip.replace(ipV6RegExp, \u0027$1:(BREAK)$2\u0027);","IsDeferred":false},{"Name":"Using array split and join","Code":"var b = ip.split(\u0027:\u0027);\r\n[b.slice(0, 4).join(\u0027:\u0027), b.slice(4, 8).join(\u0027:\u0027)].join(\u0027:(BREAK)\u0027);","IsDeferred":false}]}