{"ScriptPreparationCode":"var strIn = \u0027?this=a\u002Btest\u0026that=just\u002Bit\u0027;\r\nvar strOut = \u0027\u0027;\r\nvar regex = /^\\?/;\r\n\r\n","TestCases":[{"Name":"substring and substring","Code":"strOut = strIn.substring(0,1) === \u0027?\u0027 ? strIn.substring(1) : strIn;\r\n","IsDeferred":false},{"Name":"replace inline regex","Code":"strOut = strIn.replace(/^\\?/, \u0027\u0027);","IsDeferred":false},{"Name":"replace compiled regex var","Code":"strOut = strIn.replace(regex, \u0027\u0027);","IsDeferred":false},{"Name":"brackets and substring","Code":"strOut = strIn[0] === \u0027?\u0027 ? strIn.substring(1) : strIn;","IsDeferred":false},{"Name":"brackets and slice","Code":"strOut = strIn[0] === \u0027?\u0027 ? strIn.slice(1) : strIn;","IsDeferred":false},{"Name":"substring and slice","Code":"strOut = strIn.substring(0,1) === \u0027?\u0027 ? strIn.slice(1) : strIn;","IsDeferred":false},{"Name":"brackets and substr (legacy)","Code":"strOut = strIn[0] === \u0027?\u0027 ? strIn.substr(1) : strIn;","IsDeferred":false},{"Name":"substr and substr (legacy)","Code":"strOut = strIn.substr(0,1) === \u0027?\u0027 ? strIn.substr(1) : strIn;","IsDeferred":false}]}