I am wondering what this line of code does to a url that is contained in a String called surl?
String[] stokens = surl.split("\\s*,\\s*");
Lets pretend this is the surl = "http://myipaddress:8080/Map/MapServer.html" What will stokens be?
That regex "\\s*,\\s*"
means:
\s*
any number of whitespace characters\s*
any number of whitespace characterswhich will split on commas and consume any spaces either side