Parsing URLs with JavaScript


When one needs to parse a Uniform Resource Locator (URL) on the front-end with JavaScript, there are really two choices.

  1. Do it using a regExp.
  2. Use a HTML element.

Below is a list of sites dedicated to this topic



jsperf suites

StackOverflow questions

JS Bin examples

Blog entries

RFC specifications

Online live examples