Reply to Re: [PHP] How to ge the ones which are not

Your name:

Reply:


Posted by Jochem Maas on 10/02/97 11:10

Richard Lynch wrote:

....

> 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.

3 pages? does any one use it? is it even feasible to use it?

>
> That said, maybe this will catch *some* invalid email addresses, and not
> raise any false positives on valid email addresses...
>
> Though it sure looks to me like it's gonna complain about *MY* email
> address, and then I'll never visit your site again.

upon hearing that I had to check whether the regexp I generally use to
check addrs is washed up against your email addr... I can sleep
a little sounder... it does:

php -r '
var_dump(preg_match(
"#^(([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9}))$#",
"ceo@l-i-e.com"));

[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

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