Skip to content

Instantly share code, notes, and snippets.

@bdjm94
bdjm94 / regex-tutorial.md
Last active June 29, 2021 11:02
A tutorial that explains how a specific regular expression, or regex, functions by breaking down each part of the expression and describing what it does.

Regex Tutorial

Below is a tutorial that explains how a specific regular expression, or regex, functions by breaking down each part of the expression and describing what it does. As a web development student, a tutorial that explains regex functions is important so that I can understand the search pattern the regex defines.

Summary

A Regex or regular expression is a sequence of characters that define a search pattern. Regular expressions are used to replace text within a string, validating forms, extracting a substring from a string based on a pattern match, and much more. It is a technique commonly developed in theoretical computer science.

We will look a a string of code using regex, this code looks for a match HTML tag.