Submitted by anonymous - 3 years ago
Domain out of URL
Regular expression ^(?:https?:)?(?:\/\/)?(?:+@)?(?:www\.)?(+)
used below extracts domain with subdomains out of a full url.
It skips protocol (ex: https:), "//", "@", www subdomain and
then captures everything (ex: domain) before ":" or "/" or end of line.