{"ScriptPreparationCode":"s = \u0022\u0022\r\nfor (let i = 0; i \u003C 1500; i\u002B\u002B) {\r\n s \u002B= String.fromCharCode((Math.random() * (127 - 30) \u002B 32) | 0)\r\n}\r\nFILTER = /\\w/\r\nR1 = /^\\w\\d/\r\nR2 = /\\w\\d/y","TestCases":[{"Name":"slice then regex","Code":"let count = 0\r\nfor(let i = 0; i \u003C s.length; i\u002B\u002B) {\r\n\tif (FILTER.test(s[i])) {\r\n\t\tlet ss = s.slice(i,i\u002B2)\r\n\t\tif (R1.test(ss)) { count\u002B\u002B }\r\n\t}\r\n}","IsDeferred":false},{"Name":"sticky regex","Code":"let count = 0\r\nfor(let i = 0; i \u003C s.length; i\u002B\u002B) {\r\n\tif (FILTER.test(s[i])) {\r\n R2.lastIndex = i\r\n\t\tlet m = R2.exec(s)\r\n\t\tif (m != null) { count\u002B\u002B }\r\n\t}\r\n}","IsDeferred":false}]}