Reply to Re: ereg statements

Your name:

Reply:


Posted by Jerry Stuckle on 10/13/06 12:17

John Dunlop wrote:
> Koncept:
>
>
>>[Cerebral Believer:]
>>
>>
>>>Is this a good ereg statement?
>
>
> No. The pattern tries to weed out malformed e-mail addresses but fails
> because it is too restrictive. A regular expression to match all
> well-formed e-mail addresses would be complex, since in addition to the
> productions you would need to include from RFC2822, the pattern would
> involve recursion of a subpattern if it was to allow comments.
>
>
>>Try this:
>
>
> A prime bogosity indicator on Usenet.
>

I did see a regex which would handle all possible addresses. Don't
remember where I saw it off hand, but it was around 6500 chars long.

Obviously it's not easy to validate email addresses!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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