Find and Replace

Paste a draft, enter what to find, and see the rewritten text update. Use a regular expression only when you need one. Replacement runs in this tab. There is no upload.

Limit: 400 KB of text, 200 characters for the find pattern. Ctrl or Cmd+Enter refreshes the result.

Result

Matches replaced
0

How replacement works

With “Treat find as a regular expression” off, the find box is ordinary text. Special characters such as a period or a plus sign are matched as themselves. With the box on, the find box is a JavaScript regular expression. A bad pattern shows the browser’s message and leaves the result empty.

The tool stops after 4,000 matches, so a very broad pattern cannot freeze the tab. Narrow the find text if you hit that cap. This page does not evaluate replacement patterns such as $1 capture inserts; the “Replace with” field is always literal text.

When this tool helps

Use find and replace when a list needs one phrase swapped, a name changed in a draft, or extra spaces removed after a copy. For a count only, use the word counter. To inspect a pattern without rewriting, use the regex tester.

Questions

Does an empty replace box delete matches?

Yes. The matched text is removed and the rest of the draft stays.

Is the last draft saved?

The text box can stay in this browser so you can come back. Find and replace fields are not stored. Clearing the box or “Clear saved drafts” on the home page removes the text.

Does the text leave this tab?

No. Replacement runs in the browser from the boxes you see.