Created
February 25, 2019 13:55
-
-
Save bdbch/48739412bfafd360f623e25eb23a8844 to your computer and use it in GitHub Desktop.
regex for URL detection
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,5}(:[0-9]{1,5})?((\/[a-z0-9\S]*)*)? ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment