Skip to content

Instantly share code, notes, and snippets.

View SeanGenge's full-sized avatar

Sean Genge SeanGenge

View GitHub Profile
@SeanGenge
SeanGenge / Regex tutorial.md
Created September 19, 2022 03:08
A regex tutorial

Regex Tutorial

Summary

To understand how Regex works, we will be having a look at this Regex which will match an email: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/. This Regex may look complicated just by looking at it but we will be breaking down each component of this Regex.

Table of Contents