I\'m trying to perform the following action on a string :
\"/\"
var string = "/Roland/index.php"; var result = string.substring(0, string.lastIndexOf("/") + 0);