Hi, I need a regex for URL that begins with http:// or https:// and mast contains .php? or. .asp? in its interior. Thanks.
// get host name from URL preg_match('@^(?:http://)?([^/]+)@i', "http://www.php.net/index.html", $matches); $host = $matches[1];