Updated: August 2026 • Verified v1.2
JavaScript Regular Expression Cheat Sheet & Tester
Developer ToolsHigh UsageLocal Browser Execution: Your input is processed locally in your browser and is not sent to UTL servers.
RegExp Engine: /pattern/flags ➔ RegExp.prototype.test(string)Was this calculation helpful?
Understanding Your Results
Provides a searchable master directory of regex tokens with descriptions, 1-click token copy, and a live pattern vs string test validator.
Practical Guidance & Next Steps
Lookaheads `(?=...)` and lookbehinds `(?<=...)` match patterns without consuming characters from the target string.
What is this?
A developer reference utility that catalogs JavaScript regular expression tokens and provides an instant pattern testing sandbox.
How does it work?
1. Search for regex tokens or browse categories (Character Classes, Quantifiers, Lookarounds, Anchors).
2. Test regex patterns against sample strings in the sandbox.
3. Copy regex tokens in 1 click.
Why use it?
Quickly recalls complex regex syntax without searching through lengthy documentation.
Technical Scope & Calculation Limitations
Tests standard JavaScript ECMAScript RegExp engine syntax.
Frequently Asked Questions
`\d` matches any digit character (0-9), while `\D` matches any character that is NOT a digit.
Windows Desktop & Widget Options
All Windows widgets Want this capability on your Windows desktop?
Desktop App
9.8/10
DevToys — Swiss Army Knife for Developers
Free open-source offline desktop app for Windows featuring 30+ formatters, converters, and hash tools.
FreeEasy InstallLow RAM
By Etienne Baudoux (DevToys Team)View Widget
Complementary Utilities
All Developer Tools tools Related Tools for Your Workflow
developer
High Usage
Regular Expression (Regex) Tester & Match Explainer
HTML5 / React / TypeScriptStatic Utility
education
Everyday
Text Cleaner, Whitespace Stripper & Formatter
HTML5 / React / TypeScriptStatic Utility
developer
High Usage
JavaScript Event KeyCodes & Keyboard Event Inspector
HTML5 / React / TypeScriptStatic Utility
developer
Essential
Diff Checker & Text Comparator
Compare two text blocks or code snippets side-by-side with line-by-line character difference highlighting and statistics.
Client-Side Longest Common Subsequence Static Utility