Regex Tester
Test and debug regular expressions in real time with capture groups, substitution, and flags.
Regular Expression Quick Cheat Sheet
How to Use Regex Tester
- 1Step 1
Enter your regular expression pattern and toggle desired flags (g, i, m, s, u).
- 2Step 2
Type or paste your test text into the test string area to view live match highlighting.
- 3Step 3
Explore the capture groups table or switch to Replace mode to test string substitutions.
- 4Step 4
Share your regex test with team members using the auto-generated shareable URL.
Technical Specification & Client Security
Regular expression evaluation compiles and executes in-browser using JavaScript's native RegExp engine. Test strings and proprietary logs never leave your device, ensuring zero exposure of sensitive user data.
Input & Output Transformation Examples
Pattern: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Text: Reach us at [email protected] or [email protected]2 Matches: '[email protected]', '[email protected]'
Pattern: (?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})
Text: Release date: 2026-11-16Match: 2026-11-16 | year: 2026, month: 11, day: 16
Frequently Asked Questions
Which regular expression engine is used?
The tester runs standard ECMAScript regular expressions via your browser's V8 or JavaScriptCore runtime, supporting modern features like named capture groups, lookbehinds, and Unicode property escapes.
How can I share a regex test with a coworker?
Click the Share button or copy the current browser URL. The pattern, flags, and test string are automatically synchronized into the URL query parameters.
Does this tool protect against catastrophic backtracking (ReDoS)?
Evaluation runs inside a safe execution sandbox. Highly nested recursive quantifiers are caught to prevent freezing your browser tab.