Posted By:
Anonymous
Posted On:
Thursday, March 14, 2002 01:07 AM
If you always have the part of the string you need to extract prefixed by a fixed string (in your case seems to be "///"), you can always do something like this:
String url = "http://www.blah.com/cgi-go/dest=jguru&clickno=1234&ref=1///http://www.jguru.com";
String tracked = null;
int pos = url.lastIndexOf("///"); // you can also use indexOf()
if (pos != -1) {
tracked = url.substring(pos+3);
}