var reg1 = / [\ w, \] +) @ ((\ [[0-9] {1, 3} \. [0-9] {1, 3} \. [0-9] {1, 3} \.) | (([-] \ w + \.) +)) ([a zA - Z] {2, 4} | [0-9] {1, 3}) (\]? /;
       if (reg1.test($('input[name=email]').val()) == false) {
          $.dialog.alert("Email format is incorrect");
          return false;
       }
Copy the code