Get part of a string
Posted on 2011-10-31
Hello, I have a string that looks like this:
"~/SurveyImages/Survey - 100727/Tween Deck - UPS Room D2305/Deck, Overhead, Walls, Bulkhead/PICT0147.jpg"
Im populating a datalist with images from this directory: ~/SurveyImages/Survey - 100727/
In the directory there are numerous folders and pitcures within. I need to aquire everything after "~/SurveyImages/Survey - 100727/
and before /PICT0147.jpg"
I will populate a label in the datalist with the resulting string to show the user which folder or where is the directory structure the image can be found.
How can I accomplish this?