note 15374 rejected and deleted from function.ereg by zak

From: Date: Fri, 07 Sep 2001 06:14:47 +0000
Subject: note 15374 rejected and deleted from function.ereg by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-17757@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.

« previous php.notes (#17757) next »