note 15374 added to function.ereg
| From: | dave at glidemedia dot com | Date: | Fri, 07 Sep 2001 06:07:23 +0000 |
| Subject: | note 15374 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17755@lists.php.net to get a copy of this message | ||
I'm trying the make a simple ereg check to determine if a domain name is a valid one, with or
without the 'www.' and/or the '.com' etc. Domains are allowed to have hyphens if
the hyphen isn't at the front or the end of a domain; and numbers are ok. Would there be a way
to return the www, domainname, tld in an array as in the phone number example? Thanks to any takers
of this one.
http://www.php.net/manual/en/function.ereg.php