{"ScriptPreparationCode":"var string = \u0022P400 Dynamic HSE 4dr SUV AWD w/Zadar Grey Premium Metallic Paint (3.0L 6cyl Twincharger gas/electric mild hybrid 8A)\u0022;\r\nvar regex = /^[\\w\\s\\-.\u0027\u0022()#\u002B!]\u002B/;","TestCases":[{"Name":"RegEx.test","Code":"regex.test(string);","IsDeferred":false},{"Name":"String.includes","Code":"function mimicRegex(string) {\r\n const allowedChars = new Set(\u0060abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\\-.\\\u0027\u0022()#\u002B! \u0060);\r\n\r\n let index = 0;\r\n for (let char of str) {\r\n if (!allowedChars.has(char)) {\r\n return str.substring(0, index);\r\n }\r\n index\u002B\u002B;\r\n }\r\n\r\n return str; // Return the entire string if it matches the regex\r\n}","IsDeferred":false}]}