Regex tester

Type a pattern and some text to see every match highlighted, with capture groups and a replace preview. Uses the JavaScript regex engine.

Runs in your browser. Your files are never uploaded.

Frequently asked questions

Which regex flavour does it use?

The JavaScript (ECMAScript) engine built into your browser, the same one used by Node.js and front-end code. Most syntax is shared with PCRE, Python and Java.

What happens with a very slow pattern?

Matching runs in the background and is stopped after 1.5 seconds, so patterns with catastrophic backtracking cannot freeze the page.

Is my text uploaded?

No. It runs entirely in your browser. Nothing you add is uploaded to a server.