RE: How to ge the ones which are not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Lynch <mailto:ceo@xxxxxxxxx>
    on Friday, March 11, 2005 10:12 AM said:

>> I've built this little regular expression to test wether an e-mail
>> address is valid or not: 
>> 
>> if(eregi
>> ("^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$",
>> $email))
> 
> First, you should be aware that your RegEx is wrong.
> 
> I know it's wrong, because the CORRECT Regex is 3 *PAGES* long in the
> camel book.

Speaking of that long regex... I seem to remember finding that in a ready made function somewhere. But I can't find it in any of my code and I couldn't find it on the internet(s) last time I checked. Do you happen to know where that can be had?



Chris.

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux