Last active
June 19, 2018 10:13
-
-
Save hunty/92723104b06b5725cb7ad808b85d9085 to your computer and use it in GitHub Desktop.
URL validation regexp rule including modern zones like .museum
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
^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,20}(:[0-9]{1,5})?(\/.*)?$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
up to 20 symbols in first domain zone