Submitted over 2 years agoA solution to the Intro component with sign-up form challenge
Intro component with sign-up form validation using JavaScript & HTML
less
@andrearecuyo

Solution retrospective
Working with this challenge, I have learned how to create a basic form validation system using JavaScript, HTML, and CSS.
I used regular expressions to validate email addresses and display specific error messages.
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$/;
What other ways to validate email that covers many test cases? I am open to any alternative solution for email validation, thank you!
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Andrea Recuyo's solution.
Join 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