Let\'s say I have a URL:
http://something.com/somethingheretoo
and I want to get what\'s after the 3rd instance of /?
/
If you know it starts with http:// or https://, just skip past that part with this one-liner:
http://
https://
var content = aURL.substring(aURL.indexOf('/', 8));
This gives you more flexibility if there are multiple slashes in that segment you want.