Skip to content

Instantly share code, notes, and snippets.

View benkaan001's full-sized avatar

Ben Kaan benkaan001

  • Infosys
  • Austin, TX
  • 20:50 (UTC -05:00)
View GitHub Profile
@benkaan001
benkaan001 / myFirstGist.md
Last active December 5, 2021 21:56
Regex Tutorial: How to validate an e-mail using Regex

Brief Tutorial on Matching an Email with Regex

In this tutorial, I will disect the logic behind the Regex email validation syntax, so that you can easily customize and incorporate it into your next project that may require an email validation.

Summary

Regular expressions, Regex, enable programmers to identify/match patterns within a string. Therefore, they are an invaluable tool that every programmer must get familiar with, as they are advancing in their quest for writing clean code.

Even though this tutorial only focuses on the following email validation syntax: