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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to