Javascript String is_email()

Description

Javascript String is_email()


// JavaScript Document
// email format/* w w  w  . j a v a2s .co m*/
String.prototype.is_email=function(){
   return (/^[\w-\.]+\@[\w\.-]+\.[a-z]{2,4}$/.test(this)); 
}



PreviousNext

Related