public static function getDomain($url) { return preg_replace("/http:\\/\\/([^\\/]+)[^\\s]*/", "\$1", $url); }