c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
JavaScript

Regular expression for email id

| | JavaScript

You can use RegExp function to validate email address in JavaScript. 

  function Isvalidemail(emailV) {
        if (emailV != null && emailV != undefined) {
            var pattern = new RegExp(/^[A-Z0-9._%+-]+@@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i);
            return pattern.test(emailV);
        }
        else {
            return false;
        }
   }