You are here: Re: PHP Redirect « PHP Programming Language « IT news, forums, messages
Re: PHP Redirect

Posted by Rik on 01/25/07 21:24

On Thu, 25 Jan 2007 22:15:43 +0100, <dan@tobias.name> wrote:

> On Jan 16, 10:42 am, John <John_nos...@nnnnnnnnn.nowhere> wrote:
>> }function isValidEmail($email){
>> $pattern =3D
>> "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})=
$";
>>
>> if (eregi($pattern, $email)){
>> return true;
>> }
>> else {
>> return false;
>> }
>
> OK, this isn't the main topic of this thread, but I have to remark
> about the above function which was posted as an example of the code
> John is using; it appears that this requires as one aspect of a "valid=
"
> e-mail address that it have a top-level domain that is exactly 2 or 3
> characters long, which would exclude addresses in .info, .name,
> .museum, and some other TLDs.

Yup, I've given up trying to regex valid emaildresses (try to find =

Friedl's total email validation regex, it's a terrible beast). There are=
=

more characters allowed then just [a-z0-9_.-]. I'm just checking if the =
=

adress contains one and only one @, and wether I can locate the domain =

from the server.

-- =

Rik Wasmus
* I'm testing several new newsreaders at the moment. Please excuse =

possible errors and weird content. *

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация