RegexBuilder
← Back to the tools
📚

Regex Guides

Learn regular expressions from zero — what a regex is, character classes, quantifiers, anchors, groups and lookarounds — with the free RegexBuilder tools.

📋
Cheat Sheet
Every building block on one page, with JS / Python / PCRE differences.
🧩
Regular Expressions for Beginners: What Is a Regex and How to Read One
A plain-English introduction to regular expressions — what they are, what literal characters and metacharacters mean, and how to read a regex instead of fearing it.
🔤
Character Classes in Regex: [a-z], \d, \w and \s Explained
Character classes let a regex match any one character from a set — ranges like [a-z], shorthands like \d and \w, and negated classes with [^…].
🔁
Regex Quantifiers: *, +, ? and {n,m} Made Simple
Quantifiers say how many times a character, class or group must repeat — * , +, ? and the precise {n,m} braces, including greedy versus lazy matching.
📍
Regex Anchors: ^, $ and Word Boundaries (\b)
Anchors do not match characters — they match positions. Learn ^ (start), $ (end), the multiline flag and the \b word boundary.
📦
Regex Groups and Alternation: (), (?:), | and Backreferences
Capturing groups, non-capturing (?:…), named groups, the | alternation, and backreferences — the building blocks of multi-part patterns.
👀
Lookahead and Lookbehind in Regex: Zero-Width Assertions
Lookarounds check what is ahead or behind a position without consuming it — (?=…), (?!…), (?<=…) and (?<!…) with a practical password example.