Free · Live · Nothing uploaded

Regex tester

Build and debug regular expressions with live match highlighting, capture groups, flags and a replace preview. JavaScript flavor, right in your browser.

/ /
Result


          

🔒 Patterns and test text never leave your browser.

Quick reference

\d digit · \w word · \s space
. any · ^ start · $ end
* 0+ · + 1+ · ? 0/1 · {2,5} range
[abc] set · [^a] not · (a|b) or
(...) group · (?<n>...) named · (?:...) non-capturing
\b word boundary · \\ escape

Regex tester FAQ

What regex flavor is this?

JavaScript (ECMAScript), with flags g, i, m, s, u and y — exactly what runs in browsers and Node.js.

Does it show capture groups?

Yes — each match lists its numbered and named groups with positions, and matches highlight live.

Is my text private?

Completely — everything runs in your browser; nothing is uploaded.