Regex Tester
Test JavaScript regular expressions with live highlighting, replace, split, named groups, explanations, bulk tests, exports, share links, and ReDoS protection.
/
/
No matches
0 matches · 0 chars matched · 0.00 ms
Explanation
[A-Z]One character from the set [A-Z][a-z]One character from the set [a-z]+1 or more times (greedy)Regex tester features
Validate JavaScript regular expressions against realistic text with fast feedback, explainable matches, and safe client-side execution.
- Live JavaScript matching with highlighting, flags g/i/m/s/u/y/d/v, named groups, and capture spans
- Match, replace, split, and per-line bulk-test modes with timing, counts, and zero-length safeguards
- Token-by-token explanations, cheat sheet, samples, escape helpers, deep links, and shareable hashes
- Copy or export matches as JSON/CSV while a Web Worker timeout protects the page from runaway backtracking
Regex tester FAQ
What regex flavor does this tester use?
It uses the browser's native JavaScript RegExp engine, so results reflect JavaScript syntax and flags rather than PCRE or Python behavior.
Can I test replace, split, and multiple lines?
Yes. Use Replace, Split, or Lines mode to preview transformations and see per-line pass or fail results.
How does the tester handle unsafe regexes?
Matching runs in a Web Worker with a two-second budget; suspected catastrophic backtracking halts the worker instead of freezing the page.