Regex Cheat Sheet
Free interactive regex cheat sheet. Search and copy regular expression syntax including anchors, character classes, quantifiers, groups, lookarounds, flags, and common patterns. Bilingual EN/TH with live examples. 100% client-side and offline.
Loading tool...
What is Regex Cheat Sheet?
The Regex Cheat Sheet is a free, browser-based interactive reference for regular expression syntax. Instead of flipping between documentation pages or memorizing tokens, you get a single searchable page covering anchors, character classes, quantifiers, groups, alternation, lookaround, escaped characters, flags, and common real-world patterns. Each entry explains what a token does in plain language and shows a copy-ready example, so you can learn regex or quickly look up a forgotten symbol. Everything runs locally in your browser with no data sent anywhere.
Key Benefits
- All core regex concepts organized into nine clear categories, so you find the right token without context switching
- Instant fuzzy search across syntax, descriptions, and examples, faster than scrolling a static reference
- One-click copy for every token lets you paste directly into your editor, terminal, or regex tester
- Bilingual EN/TH content makes the reference accessible to both native and non-native English developers
- Includes curated common patterns such as email, URL, IPv4, ISO date, hex color, and HTML tag pairs
Common Use Cases
- β’Look up a regex token you forgot while writing a validation, parser, or search feature
- β’Learn regular expressions from scratch by browsing organized categories with plain-language explanations
- β’Quickly grab a common pattern such as an email or URL regex instead of reinventing it
- β’Copy syntax into a regex tester or code snippet without retyping from documentation
- β’Teach or onboard teammates to regex using a bilingual, scannable reference
How to Use the Regex Cheat Sheet
- Search or Browse: Type a keyword in the search box (such as "digit", "anchor", or "+") to filter instantly, or scroll through the nine organized categories to browse all available syntax.
- Read the Explanation: Each entry shows a plain-language description of what the regex token does, so you understand the behavior and any flag dependencies (such as m, s, or u) before using it.
- Check the Example: Every entry includes a concrete example showing sample input and the expected match, helping you confirm the token is the right fit for your pattern.
- Copy the Syntax: Click the Copy button next to any entry to copy the regex token to your clipboard, then paste it straight into your code, editor, or regex tester.
Key Features
- Nine organized categories covering anchors, character classes, quantifiers, groups, alternation, lookaround, escapes, flags, and common patterns
- Instant fuzzy search across syntax tokens, descriptions, and examples with live filtering as you type
- One-click copy for every regex syntax entry so you can paste straight into your editor or regex tester
- Bilingual EN/TH explanations and examples, displayed automatically based on your selected locale
- Common real-world patterns included such as email, URL, IPv4, ISO date, hex color, and HTML tag pairs
- 100% client-side and offline with no API calls, no tracking, and no signup required