{"ScriptPreparationCode":null,"TestCases":[{"Name":"Exec all","Code":"const TAG_REGEX = /(\\w\u002B)/g;\r\nconst dirtyHtml =\r\n \u0027aqui \u00E9 uma \u003Cstrong class=\u0022elm\u0022\u003Equest\u00E3o\u003C/strong\u003E de teste \u003Cimg class=\u0022elm\u0022 onerror=\u0022opa\u0022\u003E\u003C/img\u003E\u003Cbr class=\u0022elm\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u0027;\r\nlet match;\r\n\r\nwhile ((match = TAG_REGEX.exec(dirtyHtml)) !== null) {\r\n // console.log(match); // Process each match\r\n}","IsDeferred":false},{"Name":"Match all","Code":"const TAG_REGEX = /(\\w\u002B)/g;\r\nconst dirtyHtml =\r\n \u0027aqui \u00E9 uma \u003Cstrong class=\u0022elm\u0022\u003Equest\u00E3o\u003C/strong\u003E de teste \u003Cimg class=\u0022elm\u0022 onerror=\u0022opa\u0022\u003E\u003C/img\u003E\u003Cbr class=\u0022elm\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u0027;\r\n[...dirtyHtml.matchAll(TAG_REGEX)]","IsDeferred":false},{"Name":"Match","Code":"const TAG_REGEX = /(\\w\u002B)/g;\r\nconst dirtyHtml =\r\n \u0027aqui \u00E9 uma \u003Cstrong class=\u0022elm\u0022\u003Equest\u00E3o\u003C/strong\u003E de teste \u003Cimg class=\u0022elm\u0022 onerror=\u0022opa\u0022\u003E\u003C/img\u003E\u003Cbr class=\u0022elm\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u003Ciframe src=\u0022http://\u0022 class=\u0022iframeclass\u0022/\u003E\u0027;\r\ndirtyHtml.match(TAG_REGEX)","IsDeferred":false}]}