Substring (between characters)
If I have the String, for example - GET /www.google.com HTTP/1.1
and I want to make the host address into a substring (www.google.com), is there a way of using the first and second '/' characters to define this?
I could use indexOf("/")
to find the first bit but there may be several more forward slashes in the string.
I'm concerned that if I use something like that or indexOf("HTTP")
I will end up with possibly the file name too.
i.e. I started with:GET /www.google.com/fileName HTTP/1.1
Or is there a better way?

