Posted By

ianmone on 07/20/12


Tagged

Reference


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrockSamsom


Email Validation Regex


 / Published in: jQuery
 

Email Validation Regex from Gloonark.

  1. function validateEmail(elementValue){
  2. var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
  3. return emailPattern.test(elementValue);
  4. }

Report this snippet  

You need to login to post a comment.