Created
March 2, 2016 06:53
-
-
Save mamaz/625a01187f8e6136dd96 to your computer and use it in GitHub Desktop.
Regex for URL
This file contains hidden or 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
/^http:\/\/|(www\.)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment