Find and replace

Find and replace in a text, in plain-text mode or with regular expressions (flags g, i, m, s, u, groups $1 and $<name>). Several rules run in sequence; the preview highlights and counts the matches. Heavy regexes run in a worker with a time limit, so the page never freezes.

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

Rules (in sequence)

Rule 1

The searched text is literal; in the replacement $ has no special meaning.

rule not active

Text or regex

In text mode everything is literal: dots, brackets and asterisks are not special. In regex mode JavaScript syntax applies, with numbered and named groups; "whole words" adds \b around the pattern.

Rules in sequence

Each rule works on the result of the previous one, top to bottom. Rules that are off or have an empty "Find" field are skipped. Choose which rule's matches are highlighted.

Protection and privacy

Regexes run in a Web Worker and are stopped after 3 seconds, so a catastrophic pattern cannot freeze the page. The text never leaves the browser.

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