lundi 4 juillet 2016

Validating an Email in JavaScript [duplicate]


This question already has an answer here:

I'm using the pattern:

var pattern = /^[^s@]+@[^s@]+.[^s@]+$/;

So when I submit/send an email to myself from my contact form to test out a bunch of different email combinations, everything has worked except for:

whatever@yahoo.com && whatever@google.com

I'm not entirely sure why those two aren't being included, but I'd appreciate any assistance.


Aucun commentaire:

Enregistrer un commentaire