validate URL

From: Date: Thu, 04 Dec 2003 15:20:17 +0000
Subject: validate URL
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24127@lists.php.net to get a copy of this message
Hi, I saw this code in the Validate package (in CVS):
       if (preg_match('/^(https?|ftp)$/i', @$purl['scheme']) && !empty($purl['host'])) {
I'm no expert on regex but does this mean only http://* and ftp://* is valid? Jeroen

« previous php.pear.dev (#24127) next »