RGX
Regex Tester
Test JavaScript regex with live match highlighting, capture groups, and flag toggles.
Runs entirely in your browser · Your input is never transmitted
TEST STRING
0 matchesReady
MATCHES
IDLE—
How to use
- Type a regex pattern in the top field.
- Paste test text below.
- Matches highlight live; capture groups list below.
Frequently asked
What flavor of regex?
JavaScript (ECMAScript) — the syntax you'd use in code with new RegExp() or //. Some patterns differ from PCRE, especially lookbehind support.
Why does the g flag matter?
Without g, only the first match is returned. With g, all non-overlapping matches are found.