Regular Expressions 101

Regex is like a superpower for text! With it, you can find and replace anything you want in seconds.

Basic Syntax

.* matches any character except newline

.? matches any character except newline (non-greedy)

Groups

(group) is like a box that holds a pattern

Special Characters

\n is a newline, \t is a tab, \r is a return, \b is a word boundary