On Sat, Dec 13, 2003 at 08:17:08PM -0500, Paul Chvostek wrote:
> Validate?  How about something like:
> 
> eregi('^(f|ht)tp://([a-z0-9._:-]+@)?([a-z0-9][a-z0-9-]+\.)+[a-z][a-z]+(/([a-z0-9.%&=-]+)?)?',$string);

I like it, but I would start with '^(ftp|gttp|https):.......'
People could be using SSL.

-- 
Regards,

Andre

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

Reply via email to