I want perform sub string operation on string. I have string <img src="file:///android_asset/img/pj1.jpg" />
, and I want to get pj1.jpg
; the name of image can be anything and I want the filename only.
I tried finame = mainname.substring(0,mainname.lastIndexOf("."));
but I am getting <img src="file:///android_asset/img/pj1