Skip to content

Instantly share code, notes, and snippets.

@mschaaf
Created January 22, 2013 22:49
Show Gist options
  • Save mschaaf/4599430 to your computer and use it in GitHub Desktop.
Save mschaaf/4599430 to your computer and use it in GitHub Desktop.
parses out host from the follwing strings: "d protocol://a:b@host", "d protocol://a:b@host/", "d protocol://a:b@host?", "d protocol://a:b@host dfgdg", "d protocol://host", "d protocol://host/", "d protocol://host?", "d protocol://host fdgdg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment