Skip to content

Instantly share code, notes, and snippets.

View tanyaleepr's full-sized avatar
👋
I may be slow to respond.

Tanya tanyaleepr

👋
I may be slow to respond.
View GitHub Profile
@tanyaleepr
tanyaleepr / regex_email.md
Last active April 11, 2022 00:47
Regex tutorial for Matching an Email

Regex tutorial for Matching an Email

Regular expressions is used to detect particular character patterns within a string. Inside one string, you may also locate and modify a symbol or a group of letters. They're also often used to double-check data. An example is to valid an e-mail addresses, the regex matches character information.

Summary

This is the regex code for this tutorial is: /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/

Table of Contents