RFC 3987 compliant URL regex
This is a JavaScript port of the URL regex from http://stackoverflow.com/a/190405/384062 that includes a bug fix and some optimization.
Mathias Bynens's Regenerate was used to convert unicode escapes.
Bug fix: Eliminated stray | falsely allowing querystring to contain |
...
Submitted by Hans Meyer - 10 years ago