Regex Cheat Sheet
Searchable reference for regex anchors, character classes, quantifiers, groups, lookaround, and flags — with copyable syntax and live examples.
About this tool
The Regex Cheat Sheet is a fast, searchable reference for regular expression syntax, organized into the categories developers actually reach for while writing a pattern: Anchors, Character classes, Quantifiers, Groups (capturing, non-capturing, named, and backreferences), Lookahead/Lookbehind assertions, Flags, and a handful of Common patterns for email, URL, and IPv4 shapes.
Every entry pairs the exact syntax token with a plain-language description and a concrete before/after example, so you are not left guessing whether \B means "boundary" or "not a boundary." A one-click Copy button sits next to every syntax token, and a "Try it in Regex Tester" link takes you straight to the live pattern tester.
The search box filters across syntax, description, and category simultaneously — type "lookahead," "\d," or "greedy" and matching entries surface instantly. Category pill buttons let you narrow the view to just Anchors, just Quantifiers, and so on.
The email, URL, and IPv4 patterns in the Common Patterns section are explicitly flagged as simplified and illustrative — they are useful starting points but are not RFC-perfect and should not be relied on as the sole validation layer for security- or correctness-critical inputs.
