showing results for - "avascript regex email"
Melina
14 Sep 2020
1function Validate (InputEmail){
2  if (InputEmail.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
3    return true; 
4  } else {
5    return false; 
6  }
7}
8
9console.log(Validate("example@gmail.com"));