38
rated 0 times
[
42]
[
4]
/ answers: 1 / hits: 20982
/ 9 Years ago, thu, july 9, 2015, 12:00:00
Okay I have this
var URL = http://stackoverflow.com/questions/10767815/remove-everything-before-the-last-occurrence-of-a-character;
console.log(URL.substring(URL.lastIndexOf(/)));
Gives you /remove-everything-before-the-last-occurrence-of-a-character
How do I get http://stackoverflow.com/questions/10767815/
More From » javascript