This document provides an introduction to regular expressions (regex). It discusses what regex is, common uses cases like validation and search/replace, and basic syntax like quantifiers, character sets, anchors, boundaries, and grouping. It also includes examples of common patterns for URLs, credit cards, usernames, passwords, and IP addresses. Finally, it demonstrates how to use regex in JavaScript with methods like exec(), test(), match(), search(), replace(), and split().