[pLog-svn] Email Validator

Ammar Ibrahim ammar.ibrahim at gmail.com
Tue Jul 25 12:15:58 GMT 2006


Valid
aa at gg.cc
a_-a at gg.cc
1_a_-a at gg.cc
1_a_-.a at co.co


Seems like the valid emails thing is strange and VERY complicated! according
to the RFC

"J. P. 's-Gravezande, a.k.a. The Hacker!"@server.com could be a valid email!!!

Check http://www.quirksmode.org/js/mailcheck.html

- Ammar


On 7/23/06, Oscar Renalias <oscar at renalias.net> wrote:
>
> Oh great, I was already doing it but please go ahead :-)
>
> You can in fact start with your own made up cases... Ammar or Jon can
> provide more complicated ones later on.
>
>
> On 23 Jul 2006, at 18:44, Mark Wu wrote:
>
> > Hi Oscar:
> >
> > If Ammar provide the test case... I will wirte the test case for
> > tets runner
> > ...
> >
> > I think I need some pratices for this.
> >
> > Mark
> >
> >> -----Original Message-----
> >> From: plog-svn-bounces at devel.lifetype.net
> >> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> >> Oscar Renalias
> >> Sent: Sunday, July 23, 2006 11:14 PM
> >> To: plog-svn at devel.lifetype.net
> >> Subject: Re: [pLog-svn] Email Validator
> >>
> >> I can create the test case(s), but can you please provide a
> >> few "funny" email addresses that should work and some that shouldn't?
> >>
> >> On 23 Jul 2006, at 17:34, Ammar Ibrahim wrote:
> >>
> >>> That's exactly what I did, it's a crazy regex! And the good
> >> thing all
> >>> the good adresses are passing, but some invalid adresses like
> >>> ammar at h.a are passing although no domain is one letter and
> >> no tld is
> >>> one letter. but I think this should be OK, anyhow, if you think we
> >>> need something more serious I can get the RFC one.
> >>>
> >>> On 7/23/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
> >>> There's a pretty crazy regexp.  How much did you test it?  I don't
> >>> want to actually go through a read it, but if you have
> >> tested it with
> >>> a half dozen addresses, good and bad, and it caught them correctly,
> >>> that is good enough for me.
> >>>
> >>> On Sun, 23 Jul 2006, Ammar Ibrahim wrote:
> >>>
> >>>> find the new code attached for your review. I didn't go for the
> >>> full RFC
> >>>> validation.
> >>>>
> >>>> - Ammar
> >>>>
> >>>
> >>> --
> >>> Jon Daley
> >>> http://jon.limedaley.com/
> >>>
> >>> Everything takes longer than you think.
> >>> -- Murphy's Second Law
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>>
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http:// devel.lifetype.net/pipermail/plog-svn/attachments/20060725/be69924f/attachment.html


More information about the pLog-svn mailing list