Answers for "email basic regex"

2

regex pattern to validate email

[a-zA-Z0-9._-]{3,}@[a-zA-Z0-9.-]{3,}.[a-zA-Z]{2,4}
Posted by: Guest on August-08-2020
0

email regex

//Provided by Youtube: CodingBite

let email='[email protected]'
const handleSubmit = () => {
        let mailformat = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/;
        let Email = email.trimLeft()
        Email != ''
            ? Email.match(mailformat)
                ? alert('Sucess')
                : alert('Enter Correct Mail!')
            : alert('Fill email first!')
    }
Posted by: Guest on February-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language