Skip to main content
Tools Text
RGX

Regex Tester

152,006 runs · v1.0 · Everything below stays in your browser

Test JavaScript regex with live match highlighting, capture groups, and flag toggles.

Runs entirely in your browser · Your input is never transmitted

Ready
TEST STRING
0 matchesReady
MATCHES
 
IDLE

How to use

  1. Type a regex pattern in the top field.
  2. Paste test text below.
  3. 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.