I am wondering how I can parse this string to get a certain name or string. What I need to parse is:
items/category/test.txt
To get it with out test.txt
of course there will be different names so I can't just replace it.
I need the result to be:
items/category/
Also how can I parse it to get /category/
only?