{"ScriptPreparationCode":"var strIn = \u0027https://www.data-xata.com/all-servers.html\u0027;\r\nvar strOut = \u0027\u0027;\r\nvar regex = /\\.html$/;\r\n\r\n","TestCases":[{"Name":"substring ","Code":"strOut = strIn.substring(0,strIn.length-5)\r\n","IsDeferred":false},{"Name":"replace inline regex","Code":"strOut = strIn.replace(/\\.html$/, \u0027\u0027);","IsDeferred":false},{"Name":"replace compiled regex var","Code":"strOut = strIn.replace(regex, \u0027\u0027);","IsDeferred":false},{"Name":"slice","Code":"strOut = strIn.slice(0,-5)","IsDeferred":false},{"Name":"brackets and substr (legacy)","Code":"strOut = strIn.substr(0,strIn.length-5)","IsDeferred":false}]}