Skip to content

Instantly share code, notes, and snippets.

View malickbax's full-sized avatar

Malick Ba malickbax

  • Virginia, USA
View GitHub Profile
@malickbax
malickbax / regex-tutorial.md
Last active September 9, 2022 20:11
A tutorial explaining how regex functions and describing what it does.

REGEX TUTORIAL

This this a tutorial to explain how Regular Expressions, commonly known as regex, work. In this tutorial, I use an email address pattern to explain various regex components.

Summary

Regex are used to declare a sequence of characters that define a search pattern of a text. As such, we can use regex to find any type of user input on a webpage. Regex allows programmers to specificifally target characters in a text and narrow down a type of input such as email addresses, telephone numbers, usernames... In this tutorial, I will be using email addresses as the text type to demonstrate how Regex work.

Table of Contents