I have string like this:-
var src=url("http://localhost:200/assets/images/eyecatcher/6/black6.png)"
And now I want to get image name i.e black6.png and folder name 6.
I know there is substr function I can use but the file name and folder name will be dynamic like
orange12.png and 12 etc.
How I can get these values? Please help me.
Thanks
var src="url('http://localhost:200/assets/images/eyecatcher/6/black6.png')"? What have you tried?var src=part? Your question is not clear.