RegExp - Validate E-mail

admin

Administrator
Staff member
I know virtually no Regular Expressions, and I want to know if this about right for validating a given e-mail address?

var emailRE = new RegExp(/^(\S)+\@(\S)+\.(\S)+$/);
alert(emailRE.test(formElement.email.value))
 
Back
Top