strippath in JS ?

Nov 23, 2012 at 3:15pm

strippath in JS ?

hi everyone !

could someone please help me to get the filename from the path ?
knowing Javascript string command/operations wont help .

var filename = this.substring(this.lastIndexOf(“/”) + 1, this.lastIndexOf(“.”));

max is returning an error about not existing function .
perhaps regular expression would help ,but im also getting errors .and additionaly i would like to get rid of extension string too .

would be great if some of you have a clue what to do in my case .

#65332
Nov 23, 2012 at 4:58pm
#235463

You must be logged in to reply to this topic.