Re: Re: Checking for HTTP:// at the start of a string and more ////

From: Date: Sun, 02 Mar 2003 00:49:53 +0000
Subject: Re: Re: Checking for HTTP:// at the start of a string and more ////
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137734@lists.php.net to get a copy of this message
At 01:17 02.03.2003, Kris Jones said: --------------------[snip]-------------------- >>Untested: >> >>if (preg_match('/^http:\/\/[^\.\s]+\.[^\s]+\/$/i', >>$string)) >> // valid string >>else >> // invalid string >> > >I've also been looking for this information. Can you please point me to a >list of those string codes? My search for them in the documentation has been >fruitless. --------------------[snip]-------------------- It is all in the online manual. Start your studies at http://www.php.net/manual/en/ref.pcre.php Chapter LXXXVIII (read 88), titled "Regular Expression Functions (Perl compatible)", which are my favorites... pay special attention on these chapters: "Pattern Syntax" (http://www.php.net/manual/en/pcre.pattern.syntax.php) "Pattern Modifiers" (http://www.php.net/manual/en/pcre.pattern.modifiers.php) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#137734) next »