Regex tester.
Test JavaScript regular expressions live with match highlighting, capture groups, find & replace, and token explanations.
No uploads. Nothing saved.
Highlighted matches
- #1
2026-04-1515–25year:2026month:04day:15 - #2
2026-11-1927–37year:2026month:11day:19
Test JavaScript regular expressions without sending data to a server
Write or paste an ECMAScript regular expression, toggle g/i/m/s/u flags, inspect highlighted matches and capture groups, preview replacements, or read a token-by-token breakdown locally in your browser.
- Live match highlighting with g, i, m, s and u flags
- Inspect numbered and named capture groups, or preview replacements
- Built-in token-by-token explainer and ReDoS timeout protection
Common questions
Which regex flavor does this tester use?
It runs your browser's native JavaScript (ECMAScript) RegExp engine with support for g, i, m, s and u flags, named capture groups (?<name>...), lookbehinds (?<=...)/(?<!...) and Unicode property escapes (\p{...}) when the u flag is enabled.
What happens if I test a pattern with catastrophic backtracking?
Patterns with nested or repeated quantifiers (such as (a+)+b) or large inputs over 20,000 characters automatically run inside an isolated Web Worker with a 1.2-second timeout so a runaway regex never freezes your browser tab.
Which replacement tokens are supported?
Standard JavaScript String.prototype.replace syntax: $& inserts the full match, $1..$9 insert numbered capture groups, $<name> inserts a named group, and $$ inserts a literal dollar sign.
Are my patterns or test strings uploaded?
No. Everything runs locally in your browser memory (up to 2,000 pattern characters, 200,000 test characters and 1,000 displayed matches) and clears automatically when you leave or refresh the page.