I just use this validation rule:

mask="^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*...@[a-za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[_A-Za-z0-9-]+)";


"Alamgir Kahn" <[email protected]> wrote in message 
news:[email protected]...
> Mike McNally <emmecin...@...> writes:
>> But "toto <at> hotmail" *is* a valid email address.  Note that "valid" 
>> does
>> not mean "can be used successfully to deliver mail."
>>
>> >From RFC822:
>>
>>    addr-spec   =  local-part "@" domain
>>
>>    domain      =  sub-domain *("." sub-domain)
>>
>> It is not required that the "domain" portion of the address include a
>> dotted sequence.
>
> I've always found this puzzling, but it makes sense for local networks 
> where
> the "domain" doesn't need to be fully qualified.
>
> That said, I think Laurent is on the right path to extend the converter to 
> meet
> the specific need of handling the domain suffix.
>
> In fact Laurent, maybe you could even share that code on pastebin.com or 
> github.
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the 
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com 




------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to