Answers for "regex email mask"

2

regex for email

^[w-.]+@([w-]+.)+[w-]{2,4}$
//will validate for:  [email protected] etc
Posted by: Guest on April-12-2021
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