Created
October 25, 2016 17:28
-
-
Save chrisgoddard/df8c5a772bc9e1b2e2bb6909763792a2 to your computer and use it in GitHub Desktop.
Useful regex patterns
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
Extract domain from string (with or without protocol) | |
[?:http(s)?:\/\/]?([a-z0-9\-]+\.?[a-z0-9\-]+\.[a-z]{2,3}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment