Created
April 14, 2015 10:45
-
-
Save ganey/614c5f05d3e26c5a10e0 to your computer and use it in GitHub Desktop.
Domain Regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Works in the laravel regex as part of an array. | |
Covers with http,https and none. | |
requires a 2 letter domain extension. | |
/^((http|https)\:\/\/|)[\w+\.]+[\w]+$/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment