I\'m making a really simple email validation script that basically just checks the following
Based on Ian Christian Myers reply before this, this answer adds + sign and extend to tld with more than 4 chars
function validateEmail(email) { const regex = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,15}$/; return regex.test(email); }