Re: [OxLUG] Email address validation

Top Page
Delete this message
Reply to this message
Author: Tom Walker
Date:  
To: Oxfordshire Linux User Group Discussion List
Subject: Re: [OxLUG] Email address validation

-------- Original-Nachricht --------
>
> There's only one way to do email validation properly:
>
> 1. Read the RFC
> 2. Implement it.
>


There is another way...

1. Be aware of the RFC
2. Find someone else who has already done it ;-)
3. Judge it's quality.

http://commons.apache.org/validator/apidocs/org/apache/commons/validator/routines/package-summary.html#other.email

( http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java?revision=658832&view=markup )


I would guess that the apache commons implementation is fairly widely used, so has hopefully had lots of testing and bug fixes. Always better than maintaining your own IMO.

Regards,
Tom
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser