note 18333 added to function.preg-match

From: Date: Fri, 18 Jan 2002 17:58:20 +0000
Subject: note 18333 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-25053@lists.php.net to get a copy of this message
My last expression needed a "not a colon or slash" in the host section. The right expr is this: preg_match("/^(.*:\/\/)?([^:\/]+):?([0-9]+)?(.*)/", $url, $match) -- http://www.php.net/manual/en/function.preg-match.php http://master.php.net/manage/user-notes.php?action=edit+18333 http://master.php.net/manage/user-notes.php?action=delete+18333 http://master.php.net/manage/user-notes.php?action=reject+18333

« previous php.notes (#25053) next »