RE: [PHP] Regex for Validating URL
| From: | Burhan Khalid | Date: | Tue, 07 Sep 2004 07:58:48 +0000 |
| Subject: | RE: [PHP] Regex for Validating URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196019@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Nick Wilson [mailto:nick@stylesheet.org]
Sent: Thursday, September 02, 2004 11:59 AM
Hi all,
yeah, i know, i did do quite a bit of searching but I just cant find it...
Does anyone have the regex to make sure an http address is full and without
error? like http://www.example.com
http://www.php.net/parse_url should do what you require.
If all you want to
do is filter out the different parts of the url and check if they exist or
not.
[ ignoring the rather OT discussion that this thread has lead to ]