Answers for "javascript str remove everything after character"

0

javascript str remove everything after character

var URL = "http://stackoverflow.com/questions/10767815/remove-everything-before-the-last-occurrence-of-a-character";
alert(URL.substring(0, URL.lastIndexOf("/") + 1));
Posted by: Guest on August-15-2021

Code answers related to "javascript str remove everything after character"

Code answers related to "Javascript"

Browse Popular Code Answers by Language