Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23855
| 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> |
| Message-ID | <lvppknnahf.fsf@saunalahti.fi> (permalink) |
| Date | 2014-04-11 18:37 +0300 |
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