Untested:

if (preg_match('/^http:\/\/[^\.\s]+\.[^\s]+\/$/i', $string))
   // valid string
else
   // invalid string

Should match a string beginning with 'http://', followed by one or more
characters that are no dots or whitespace, followed by a dot, followed >by one or more characters that are not whitespace, and terminated with >a slash. The terminating 'i' makes the search case insensitive.

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.








_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Reply via email to