Skip to content

Instantly share code, notes, and snippets.

@NonLogicalDev
Last active December 20, 2015 04:09
Show Gist options
  • Save NonLogicalDev/6068820 to your computer and use it in GitHub Desktop.
Save NonLogicalDev/6068820 to your computer and use it in GitHub Desktop.
^ # start of the line
http(s)? # http or https
:\/\/ # ://
(www\.)? # maybe www subdomain
[^\s]* # no spaces allowed
$ # end of the line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment