SAPO::Utility.Validator->mail

This method will check if the passed string is a valid E-Mail.

This is a static method.

Syntax

SAPO.Utility.Validator.mail(string)

Compatibility

All browsersYes

Depends

Input Parameters

  • string : E-Mail string

Sample

Example

alert(SAPO.Utility.Validator.mail('joe@sapo.pt')); 
will return true;

alert(SAPO.Utility.Validator.mail('joe_sapo.pt')); 
will return false

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found