<reponame>TheCyberpunker/cloudScripts<filename>Regex/validateEmailRegex.js<gh_stars>0// https://thecyberpunker.com/ 
// test regex


const email = 'dycjh@example.com' // check with kenaa@example.com

var validador = new RegExp("^[a-zA-Z0-9._-]{2,25}@[a-zA-Z0-9.-]{2,25}\\.[a-zA-Z]{2,25}(\\.[a-zA-Z]{2,25})?$");
        if(validador.test(email) && !email.includes("notiene") && !email.includes("NOTIENE")){
            console.log('Correo Valido')
        }
        else console.log('Correo Invalido')