Find & Replace

Search and replace text with plain matching or full regex support.

What Does the Find & Replace Tool Do?

This tool searches your text for every occurrence of a word, phrase or pattern and replaces them all at once. It supports three matching modes that can be combined: case-sensitive matching, whole-word matching (so replacing "cat" won't touch "category"), and full regular-expression mode for advanced pattern replacements — the same regex flavor used by JavaScript.

After each run the tool reports exactly how many replacements were made, so you always know the scale of the change before you copy the result.

How to Use Find & Replace

  1. Paste your text into the top box.
  2. Enter what to Find and what to Replace with (leave the replacement empty to simply delete matches).
  3. Optionally enable case-sensitive, whole-word or regex matching.
  4. Click Replace All and copy the result.

Power Tips with Regex Mode

  • Replace \d+ with # to mask every number in a document.
  • Replace \s+$ with nothing to strip trailing whitespace from each line (with the m behavior built in).
  • Use capture groups: find (\w+)@example\.com and replace with $1@newdomain.com to migrate email domains while keeping the usernames.
  • Find double punctuation like !{2,} and replace with a single ! to calm down enthusiastic text.

Writers use the tool to update names or terms across long manuscripts, developers batch-edit config files and datasets, and marketers swap product names or URLs across bulk copy in seconds.

Frequently Asked Questions

What does "whole words only" change?

It requires the match to stand alone with word boundaries on both sides. Replacing "art" with "science" would then leave "start" and "artistic" untouched, changing only the standalone word "art".

Which regex syntax does the tool use?

JavaScript regular expressions — the same syntax used in browsers and Node.js. Capture groups ($1, $2), character classes, quantifiers and lookaheads all work.

Can I delete text instead of replacing it?

Yes — just leave the "Replace with" field empty. Every match is removed from the text.

Why does my regex show an error?

The pattern probably has a syntax problem such as an unclosed bracket or an invalid quantifier. The error message under the button quotes the exact issue reported by the regex engine.