Timeline for How can I validate an email address in JavaScript?
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 20, 2022 at 0:38 | comment | added | John Montgomery | @iwazovsky If you're using string-level validation to determine whether you can "trust" the email entered, you're already doing it wrong. Using it for anything other than catching mistakes is a lost cause, and most mistakes that don't get caught by this are going to be something that no regex can catch anyway because they'll probably still look like a valid email. | |
Sep 29, 2021 at 11:04 | history | edited | ruohola | CC BY-SA 4.0 |
added 74 characters in body
|
Sep 29, 2021 at 11:01 | comment | added | ruohola | @Aravin Yes It is. | |
Feb 16, 2021 at 18:37 | comment | added | David Mårtensson | Its better than most, yes you could have more than one @ with this, but that could also be a valid email like "@"@mydomain.jskd or elldffs(this is @ comment)@mydomain.kjfdij. Both are syntactically valid emails | |
Dec 20, 2020 at 10:17 | comment | added | Aravin | is a@b valid email ? | |
Sep 20, 2020 at 22:06 | history | edited | CodingYourLife | CC BY-SA 4.0 |
fully reverted with >0 instead of 1
|
Sep 20, 2020 at 22:04 | history | rollback | CodingYourLife |
Rollback to Revision 5
|
|
Sep 20, 2020 at 22:04 | history | rollback | CodingYourLife |
Rollback to Revision 4
|
|
Sep 20, 2020 at 22:04 | history | edited | CodingYourLife | CC BY-SA 4.0 |
sorry my initial suggestion was wrong because it's not a count but an indexOf occurance. I'd leave it that way tbh...
|
Sep 20, 2020 at 21:54 | history | edited | CodingYourLife | CC BY-SA 4.0 |
at sign should be exactly one and not one or more. no email should contain more than one at sign. also comment states that with 4 upvotes.
|
Apr 15, 2018 at 10:22 | history | edited | Azeem | CC BY-SA 3.0 |
Updated answer
|
Apr 26, 2015 at 10:14 | comment | added | iwazovsky | what if there will be more than one '@' symbol? other restricted symbols? This validation cannot be trusted... | |
Jun 27, 2014 at 17:25 | history | edited | Piskvor left the building | CC BY-SA 3.0 |
local part needs to be at least 1 character long, therefore "@" may appear at position 1 or larger, NOT at the start
|
Sep 11, 2013 at 2:21 | history | made wiki | Post Made Community Wiki by pera | ||
Jul 14, 2013 at 18:15 | history | answered | Colonel Panic | CC BY-SA 3.0 |