Regex tester

Write a JavaScript regular expression, choose the flags and paste a test text: matches are highlighted at once, with groups and a replacement preview. A timeout stops patterns that are too slow.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Text with matches highlighted

Matches

No matches

Replacement

$1…$9 and $<name> insert groups, $& the whole match, $$ a dollar sign. Without the g flag only the first match is replaced.

Pattern explained

Write a pattern to see its explanation.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain