Timeline for How can I validate an email address in JavaScript?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 30, 2023 at 4:06 | comment | added | Avatar |
How to add {2,6} to make sure the string after the period is between 2 and 6 chars long?
|
|
Aug 22, 2022 at 19:24 | comment | added | Timo | @RandalSchwartz your comment regarding whitespaces before @ is already written by mohit I think. | |
Jun 21, 2022 at 22:10 | comment | added | Randal Schwartz | That's still not valid. Spaces are permitted in the local-part as long as they are properly escaped (in double quotes). | |
Sep 15, 2021 at 17:54 | history | edited | Rajeshwar | CC BY-SA 4.0 |
additional check
|
Jul 8, 2021 at 19:57 | comment | added | Mohit Atray | But it won't accept "Mohit Atray"@gmail.com because it contains space character. Maybe we should just use /^\S.*@\S+$/ regex. | |
Nov 28, 2018 at 10:31 | history | edited | Romain Vincent | CC BY-SA 4.0 |
add start and end checks since otherwise, the pattern is pretty useless in most use cases that I can think of. And it's going to confuse most people I think.
|
Sep 11, 2013 at 2:21 | history | made wiki | Post Made Community Wiki by pera | ||
Aug 24, 2013 at 20:44 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
Copy edited.
|
Sep 19, 2012 at 18:41 | history | edited | user212218 | CC BY-SA 3.0 |
Fixed formatting.
|
Jul 19, 2012 at 7:14 | comment | added | kommradHomer | +1 as sending email and seeing what happens is the only real sure way to validate an email address , theres no need to do more than a simple regex match. | |
Sep 7, 2008 at 21:21 | history | answered | Jaymon | CC BY-SA 2.5 |