HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How To Validate an Email Address With JavaScript

15,714 views October 27, 2019 3:03

Watch on YouTube
ChannelJunior Developer Central

Description from the creator

In this tutorial, you'll learn how to validate an email address with JavaScript.

🚀 Free JavaScript Essentials Course! 👉 codewithbubb.gumroad.com/l/ugyud
📖 Free 32-page eBook of JavaScript HowTos 👉 bit.ly/2ThXPL3

It's something you might need to do from time to time within your application but verifying or validating an email address with JavaScript is done by matching the user entered string against a pattern using a JavaScript regular expression.

This is a JavaScript tutorial for beginners, to understand how to write a simple regular expression in JavaScript and use it to check for a valid email address.

JavaScript has some useful functions for working with regular expressions and you'll learn about how to use the JavaScript regular expression test function to return a true or false value depending on whether the string matches the email regex.

In this JavaScript tutorial, we'll look at how you can validate an email in JavaScript by using a simple email regex and also a more complicated pattern that is used by Chrome to check if a user has entered, what appears to be, a valid email address.

No JavaScript tutorial would be complete without an outrageously long string used to check for something as simple as an email address! In the second part of this JavaScript tutorial for beginners, we'll look at how to validate an email address with JavaScript using a complex regular expression pattern which is actually directly from the Chrome runtime which is used to validate emails that the user enters into form fields with the input type set to 'email'. Channel Handle @codebubb

About this tutorial

Junior Developer Central published this 3:03 video tutorial on October 27, 2019. It has been watched 15,714 times on YouTube.

Category
Education
Duration
3:03
Published
October 27, 2019
Views
15,714
Likes
127

Tags

Share

This tutorial in other languages