Skip to content

Instantly share code, notes, and snippets.

View krosengr4's full-sized avatar

Kevin Rosengren krosengr4

View GitHub Profile
@krosengr4
krosengr4 / regex-tutorial
Created January 18, 2024 05:03
Regex Tutorial
# Regex (Regular Expression) Tutorial
Regular expressions, known as Regex, is code that contains a series of special characters used to define a search pattern. At first regex may seem confusing and complicated, but when broken down into simple sections, regex becomes much more easy to understand. That is what I will be doing in this tutorial.
## Summary
The line of that I will use to break into smaller sections is below.
```
/[\w._%+-]+@[\w.-]+\.[a-zA-z]{2,4}/