URL Regex Explained With Examples

This tutorial shows how a regular expression (regex) is used to match URLs. Each part of the regex is explained within the context of the URL with examples. Originally published on Github Gist. Summary The regular expression below matches URLs. It matches URLs with or...