Skip to content

Instantly share code, notes, and snippets.

View amymgardiner's full-sized avatar

Amy Gardiner amymgardiner

View GitHub Profile
@amymgardiner
amymgardiner / Regex-Tutorial.md
Last active September 12, 2022 03:36
Module 17 Challenge - Computer Science for JavaScript

Regex Tutorial - Matching an Email

This regex, which is short for regular expression, tutorial will explain what the different parts of a specific regex does. This tutorial is a challenge project for a bootcamp course I am taking, and the specific regex was given as part of that challenge.

Summary

A regex is a sequence of characters (literal and meta) that defines a search pattern, which can be used by developers. In this tutorial, I will break down each part of the expression below and describe what it does.

In simple terms, this complicated looking expression looks for the four parts of an email address which include the username, an @ symbol, email server name, a dot, and the domain.