{"ScriptPreparationCode":"var example = \u0027https://www.google.com/search?q=example\u002Bquery\u002Bparamas\u002Burl\u0026rlz=1C5CHFA_enGB926GB926\u0026oq=example\u002Bquery\u002Bparamas\u002Burl\u0026gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIICAEQABgWGB4yDQgCEAAYhgMYgAQYigUyDQgDEAAYhgMYgAQYigUyDQgEEAAYhgMYgAQYigUyDQgFEAAYhgMYgAQYigUyCggGEAAYogQYiQUyCggHEAAYogQYiQUyCggIEAAYgAQYogQyCggJEAAYgAQYogTSAQgzOTMxajBqN6gCALACAA\u0026sourceid=chrome\u0026ie=UTF-8\u0027","TestCases":[{"Name":"split","Code":"var result = example.split(/[?#]/)[0];","IsDeferred":false},{"Name":"pathname","Code":"var result = new URL(example).pathname","IsDeferred":false},{"Name":"Split only using character","Code":"var result = example.split(\u0027?\u0027)[0];","IsDeferred":false}]}