{"ScriptPreparationCode":null,"TestCases":[{"Name":"Joined regexp","Code":"const toReplace = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027];\r\nconst regexp = new RegExp(toReplace.join(\u0022|\u0022), \u0022g\u0022);\r\n\u0022abcdefgabcdefgabcdefg\u0022.replace(regexp, \u0027*\u0027);","IsDeferred":false},{"Name":"loop","Code":"const toReplace = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027];\r\nconst sample = \u0022abcdefgabcdefgabcdefg\u0022\r\ntoReplace.forEach((letter) =\u003E { sample.replace(new RegExp(letter, \u0022g\u0022), \u0022*\u0022) })","IsDeferred":false},{"Name":"single replace","Code":"const regexp = new RegExp(\u0022a\u0022, \u0022g\u0022);\r\n\u0022aaadefgaaadefgaaadefg\u0022.replace(regexp, \u0027*\u0027);","IsDeferred":false}]}