From: "Jason Wong" <[EMAIL PROTECTED]>

> Does anyone have the regex to make sure an http address is full and
> without error? like http://www.example.com

(?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\.
)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+)

[snip]

Did you just pulled it out of your ***[1] or did you copy-n-paste it from
somewhere?

Some "best of the internet" site... I had to pull it from the Google cache since work wouldn't let me get to the site.


I don't even know if it really works or not... :)

---John Holmes....

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



Reply via email to