{"ScriptPreparationCode":null,"TestCases":[{"Name":"Dom Parser","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022\r\nconst parser = new DOMParser();\r\nconst virtualDom = parser.parseFromString(html, \u0027text/html\u0027);\r\nconst body = virtualDom.querySelector(\u0027body\u0027);","IsDeferred":false},{"Name":"Regex","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022\r\nconst pattern = /\u003Cbody[^\u003E]*\u003E((.|[\\n\\r])*)\u003C\\/body\u003E/im;\r\nconst matches = pattern.exec(html);\r\nconst body = matches[1]","IsDeferred":false},{"Name":"Regex2","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022\r\nconst pattern = /\u003C(?:\u0022[^\u0022]*\u0022[\u0027\u0022]*|\u0027[^\u0027]*\u0027[\u0027\u0022]*|[^\u0027\u0022\u003E])\u002B\u003E/g;\r\nconst matches = pattern.exec(html);\r\nconst body = matches[1]","IsDeferred":false},{"Name":"Regex3","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022\r\nconst pattern = /\u003C(.|\\n)\u002B?\u003E/g;\r\nconst matches = pattern.exec(html);\r\nconst body = matches[1]","IsDeferred":false}]}