Design comparison
SolutionDesign
Solution retrospective
stuck a little in validating the input tag with regex
Community feedback
- @JosueJMartinezPosted over 1 year ago
try this for validate email:
const validateEmail = email => { return String(email) .toLowerCase() .match( /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ ); };
0@JosueJMartinezPosted over 1 year agoPlease vote up if you like the solution @heart77777
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord