Skip to content

Instantly share code, notes, and snippets.

@graydevon
graydevon / regextutorial.md
Last active January 2, 2024 12:46
Regex Tutorial

Regex tutorial

This tutorial covers the main basic concepts of regular expressions (regex) .

Summary

Regular expressions or also more commonly known as Regex are a sequence of characters that defines a search pattern. Regex are commonly used to validated an input or find/replace characters withing text. Regex are rather universal and can be used in most programming languages. Consider the following expression:

/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/