{"ScriptPreparationCode":null,"TestCases":[{"Name":"string.replace","Code":"const name = \u0027Hello - {token1} {token2} {token3}\u0027;\r\nconst regexp = /\\{(.*?)}/g;\r\nconst tokens = [];\r\n\r\nname.replace(regexp, function(a, b) {\r\n tokens.push(b);\r\n});\r\n","IsDeferred":false},{"Name":"string.matchAll","Code":"const name = \u0027Hello - {token1} {token2} {token3}\u0027;\r\nconst regexp = /\\{(.*?)}/g;\r\n\r\nconst tokens = Array.from(name.matchAll(regexp), (m) =\u003E m[1]);","IsDeferred":false},{"Name":"regexp.exec","Code":"const name = \u0027Hello - {token1} {token2} {token3}\u0027;\r\nconst regexp = /\\{(.*?)}/g;\r\nconst tokens = [];\r\n\r\nlet execResults;\r\nwhile ((execResults = regexp.exec(name)) !== null) {\r\n tokens.push(execResults[0]);\r\n}","IsDeferred":false}]}