This gist provides a tutorial on regular expressions (regex), specifically using regex to match a URL.
Regular expressions use a specific sequence of characters to define a search pattern or validate data.
Different requirements will utilize different regex sequences. For example, the regex below matches a valid URL: