I have a line like this: -
var src=url("http://localhost:200/assets/images/eyecatcher/6/black6.png)"
And now I want to get the image name ie black6.png and folder name 6 . I know there is a substr function that I can use, but the file name and folder name will be dynamic like orange12.png and 12 etc.
How can I get these values? Please help me.
thanks
source share