/ Published in: Regular Expression
Regular expression to pull the domain from a URL.
Expand |
Embed | Plain Text
/https?:\/\/(?:[-\w]+\.)?([-\w]+)\.\w+(?:\.\w+)?\/?.*/i
You need to login to post a comment.
Regular expression to pull the domain from a URL.
/https?:\/\/(?:[-\w]+\.)?([-\w]+)\.\w+(?:\.\w+)?\/?.*/i
You need to login to post a comment.