Developer toolLiveRuns on your device

Regex Tester

Write a JavaScript regular expression and see every match highlighted live, with capture groups, named groups and positions, plus a replace preview. Supports the g, i, m, s, u and y flags.

How to use

Regex Tester in three steps

  1. 01

    Type a pattern and choose flags.

  2. 02

    Paste the text to test against.

  3. 03

    Inspect matches and groups, or preview a replacement.

FAQ

Good to know

JavaScript (ECMAScript), exactly as your browser runs it — the same engine as Node.js and Chrome.

No. Patterns run in a background worker with a time limit, so a runaway pattern is stopped instead of locking up the tab.

No. The tool runs inside this browser tab. Your input is processed in memory on your device and is gone when you close the tab.

Related

All Developer tools