{"ScriptPreparationCode":"String.prototype.replaceAll = function(search, replacement) {\r\n var target = this;\r\n \tlet idx;\r\n \tlet cursoridx = 0;\r\n \twhile (true) {\r\n idx = target.indexOf(search, cursoridx);\r\n if (idx === -1) break;\r\n target = target.substring(0, idx) \u002B replacement \u002B target.substring(idx \u002B 1) \r\n }\r\n \treturn target;\r\n};","TestCases":[{"Name":"replace regex","Code":"\u0022this.is.it.arts.arst.arst.arst\u0022.replace(/\\./g, \u0022\u0022);","IsDeferred":false},{"Name":"replace All","Code":"\u0022this.is.it.arts.arst.arst.arst\u0022.replaceAll(\u0022.\u0022, \u0022\u0022);","IsDeferred":false}]}