Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23855
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed1.swip.net!newsfeed2.funet.fi!newsfeeds.funet.fi!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail |
|---|---|
| From | Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Check an input field type='email' has validated successfully |
| Organization | N/A |
| References | <d72788d9-2a59-4d3a-b5d2-24aebc9abbec@googlegroups.com> <li7058$pe5$5@dont-email.me> |
| X-no-archive | yes |
| Content-Transfer-Encoding | 8bit |
| Message-ID | <lvppknnahf.fsf@saunalahti.fi> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:Bu+HQFLcuVkcb5CDGmC8CZjWwuU= |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Lines | 14 |
| Date | Fri, 11 Apr 2014 18:37:16 +0300 |
| NNTP-Posting-Host | 91.155.88.191 |
| X-Complaints-To | newsmaster@saunalahti.com |
| X-Trace | uutiset.elisa.fi 1397230636 91.155.88.191 (Fri, 11 Apr 2014 18:37:16 EEST) |
| NNTP-Posting-Date | Fri, 11 Apr 2014 18:37:16 EEST |
| Xref | csiph.com comp.lang.javascript:23855 |
Show key headers only | View raw
Denis McMahon <denismfmcmahon@gmail.com> writes: > The best easy check in javascript is probably that the email address > given contains no spaces, one and only one "@" symbol, and at least one > period on the right hand side of the "@". You can get more complex, the > more complex you get the higher the risk of rejecting a valid email I think it's also safe to check that there is at least one alphanumeric character before the @, at least one more between the @ and the last period, and at least two after the last period. Anything stricter than that will probably reject some valid addresses. -- Jukka Lahtinen
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Check an input field type='email' has validated successfully anthony.glazebrook@gmail.com - 2014-04-10 10:29 -0700
Re: Check an input field type='email' has validated successfully "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-04-10 20:24 +0200
Re: Check an input field type='email' has validated successfully Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-10 20:49 +0000
Re: Check an input field type='email' has validated successfully Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-04-11 18:37 +0300
Re: Check an input field type='email' has validated successfully Christoph Michael Becker <cmbecker69@arcor.de> - 2014-04-11 18:12 +0200
Re: Check an input field type='email' has validated successfully Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-11 22:51 +0000
Re: Check an input field type='email' has validated successfully Andreas Bergmaier <andber93@web.de> - 2014-04-11 01:29 +0200
Re: Check an input field type='email' has validated successfully "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-04-11 09:01 +0200
Re: Check an input field type='email' has validated successfully Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-11 11:02 +0200
Re: Check an input field type='email' has validated successfully Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-11 11:48 +0200
csiph-web