Reply to RE: [PHP] Re: email validation regex

Your name:

Reply:


Posted by "bruce" on 09/18/05 07:37

for one... as i recall...

email::valid picks up the fact that 1@1 is not valid

email::valid also permits you to have ip addresses in the domain section

email::valid also has in my mind a better grasp of the valid/invalid chars
for the username portion...

you mileage may vary..

-bruce


-----Original Message-----
From: Robert Paul [mailto:robertpaul@gmail.com]
Sent: Saturday, September 17, 2005 8:06 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: email validation regex


Well what does the aforementioned regex seem to miss that Email::Valid
catches?

--Rob

bruce wrote:
> i tried that one...
>
> it doesn't do as well as the perl... "Email::Valid" mod...
>
> i decided to write a quick perl script, and call it from the php app...
> seems to satisfy my needs for now... i haven't run across any php
> script/regex that's as comprehensive as the perl "Email::Valid"
>
> -bruce
>
>
> -----Original Message-----
> From: Robert Paul [mailto:robertpaul@gmail.com]
> Sent: Friday, September 16, 2005 7:13 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: email validation regex
>
>
> http://www.iamcal.com/publish/articles/php/parsing_email/
>
> The author goes through RFC822 in detail and writes up a regex that
> validates emails based on that. It's worked in my experience, but I
> havn't exactly put it through its paces.
>
> --Rob
>
> bruce wrote:
>
>>hi..
>>
>>looking for a good/working/tested php email validation regex that conforms
>>to the rfc2822 standard.
>>
>>a lot of what i've seen from google breaks, or doesn't follow the
>
> standard!
>
>>any ideas/thoughts/sample code/etc...
>>
>>thanks
>>
>>-bruce
>>bedouglas@earthlink.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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

[Back to original 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

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