{"ScriptPreparationCode":"var str = \u0027player/attack-bottom/1\u0027\r\n","TestCases":[{"Name":"lastIndexOf","Code":"const idx = str.lastIndexOf(\u0027/\u0027)\r\n\r\nconst r1 = str.substring(0, idx)\r\nconst r2 = str.substring(idx \u002B 1, str.length)\r\n","IsDeferred":false},{"Name":"split","Code":"const splited = str.split(\u0027/\u0027)\r\n\r\nconst r1 = splited[0]\r\nconst r2 = splited[splited.length - 1]\r\n\r\n","IsDeferred":false},{"Name":"regex","Code":"const splited = str.match(/[^\\/]\u002B/g)\r\n\r\nconst r1 = splited[0]\r\nconst r2 = splited[splited.length - 1]\r\n","IsDeferred":false}]}