Skip to content

Instantly share code, notes, and snippets.

View Ybyonas1's full-sized avatar

Yonas Wolde Ybyonas1

View GitHub Profile
@Ybyonas1
Ybyonas1 / Redex "Tutorial".md
Created January 20, 2022 03:31
Chapter 17: Regex Tutorial

Chatpter 17: Computer Science for Javascript: Regex Tutorial

by: Yonas Woldemichael

This is a tutorial outlineing what a regular expression is, but more specifically, what a Regex matching an Email is.

Summary

I will be summarizing the Regex (or Regular Expression) for matching an email. As a final product, this is what the regex for a matching email looks like: "/^([a-z\d.-]+)@([a-z\d-]+).([a-z]{2,8})(.[a-z]{2,8})?$/". Now, to the naked eye, this may seem like a blop a characters thrown on a readMe (because honestly speaking that is what I initially thought of it as), however there are simple yet unique identifiers that each of those characters signify. What are they you might ask? Well continue reading as I will be explaining just that below.