Skip to content

Instantly share code, notes, and snippets.

@P-Trish
P-Trish / Regex-Gist_Matching-an-Email.md
Last active May 3, 2023 21:40
This gist is a tutorial that explains the Regex of Matching an Email - /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/

REGEX and Relax: A Tutorial Gist On Matching An Email

A regular expression, or regex is a sequence of characters that defines a specific search pattern. It can be used to find certain patters of characters within a string, in this case an email.

This tutorial demonstarates how a regex functions by breaking down each part of an email expression and describing what it does.

Summary