Hello, I am having a couple of problems with parsing path.
My first problem is with splitting the URI, lets say i have the URI scheme://host/path/path2. If i say
String rest = containuri.split("/");
it would split the URI in 5 but when in reality i just want to split at the second last /. So I’m not sure how to get around that.
My second problem:
Lets say that i managed to split the URI correctly and i got the path. Well a correct path would look like “/path/path2” but if i split at / it would remove the first one.
Thank you in advance