Friday, June 3, 2016

Split URL with last slash of URL

Get last value of a URL


var myURL:  "http://ravimaloth:/abcd/rkm/ssts/Word_Thesis_091.ppt" ;
Requirement to get value: Word_Thesis_091.ppt

var fileName = myURL..match(/[^/]*$/)[0];

No comments:

Post a Comment