Regex Tester
Test regular expressions against sample text with live match highlighting.
Live preview
Advertisement
AHow to use
- 01 Type a regular expression and optional flags (g, i, m…).
- 02 Paste sample text below it.
- 03 Matches are highlighted live, with a total count.
QFAQ
Which regex flavor is used? +
JavaScript (ECMAScript) regular expressions — the same engine that runs in every browser and Node.js. Flags like g (global), i (ignore case) and m (multiline) work here.
Why does only one match get highlighted? +
Without the g flag a regular expression stops at the first match — exactly what happens in real code. Add g to highlight every occurrence.