For example getting just "www.google.com"
https://www.google.co.nz/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=splunk
where "https://www.google.co.nz/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=splunk" is already extracted as URL.
Simply put ((?[^:/?#]+):)?(//(?[^/?#]*))?(?[^?#|\s]*)(\?(?[^#|^\s]*))?(#(?.*[^\s]))?
cs_uri_authority is the one you are looking for.
Try this regular expression: (?!(http|https)(:\/\/))+([\w]+.){1}([\w]+.?)+
Will be happy to hear back if it worked or not.