A simple URL regex that can handle most "properly" formed URLs, and some URIs. It features named groups to easily destruct matches. URIs can use relative paths (../ and ./) to resources.
Example (JavaScript)
let url = "https://username:password@example.org:8080/path/to/resource?query=term&query=ter...
Submitted by ephellon - 2 years ago (Last modified a month ago)