Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

Regex - email validation

0 votes
61 views
added May 14 in Regex by lcjr Second Warrant Officer (3,160 points)
function isEmail(email) {
  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  return regex.test(email);
}

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...