Code: Select all
preg_match("/^(http:\/\/)?([^\/]+)/i","http://www.php.net/index.html",$matches);Also, the "?" is confusing me as it has more than one meaning. One is "to extend the meaning of", and the other being "a 0 or 1 quantifier".
Cound you clear this up for me?