An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
November 12, 2022 04:10 pm GMT
Original Link: https://dev.to/mirajhad/email-validation-4089
EMAIL VALIDATION
`const regex = /\S+@\S+.\S+/
console.log(regex.test("miraj@gmailcom"))
const data =/[a-zA-Z0-9._-]{3,}@[a-zA-Z0-9.-]{3,}.[a-zA-Z]{2,4}/
const email ='[email protected]'
console.log(email.match(data)? 'yes':'no');`
Original Link: https://dev.to/mirajhad/email-validation-4089
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To