Lets assume I have a string:
asdf/dfa/fds?adsf
I want to be able to get the string: asdf?adsf
So essentially I want to parse out everything from the first '/' to the '?'.
I tried experimenting with it (see example below) but I couldn't get it to work:
s = s.replaceAll("\\/([?]*)", "");