Find and replace

Processed in this browser

Text limit: 2000000 characters

This tool never uploads your input.

Replace plain strings or regular expressions and see how many matches hit. This is an editor action, not a word count, and not a regex explainer with a debugger.

You need every foo to become bar in a blob you do not want in a cloud doc. That is this page.

Word counter counts. Regex tester explains matches. Whitespace cleaner is spacing.

Rename a string, not a regex lab

Company name changes and typo sweeps in plain text. Pattern debugging is the regex tester (JavaScript RegExp). Blank-line cleanup is the whitespace cleaner. Two versions to compare is text-diff.

How to use it

  1. Paste the text. Enter find and replace.
  2. Toggle regex if you mean it. Count matches before you trust the result.
  3. Copy out. Keep the original elsewhere.

Honest limits

  • JS regex, not PCRE/Rust.
  • Not a multi-file project refactor.
  • Unpublished drafts stay in the tab — still do not paste secrets into a random site you have not checked.

This is a local editor action, not an IDE.

FAQ

Is this a word counter?

No. Word counter counts. This page edits.

Do you support capture groups?

If the replacement box accepts $1 / $& as the JS String.replace engine does, use those. Test on a copy.

Why did the tab freeze?

A greedy regex on a huge paste can run a long time. Use the regex tester for a smaller sample, then come back.

Is the draft uploaded?

No.

Whitespace-only cleanup?

Whitespace cleaner is the specialized tool for tabs and collapsed spaces.

Related tools