Find & Replace

Search and replace text with regex support and live match highlighting

Input Text

97 chars

Result

Click "Replace All" to see results here

About the Find and Replace

This find and replace tool edits text in bulk with optional regex, case sensitivity and whole-word matching. A live match count tells you how many replacements will happen before you commit, which is the safeguard a plain editor lacks.

Find and replace in bulk is needed whenever the same correction applies many times: a renamed product across a document, a changed domain in a list of URLs, or a placeholder swapped for a real value throughout a template.

The live match count is the important part. Seeing that a search matches 340 times rather than the 12 you expected is how you catch a pattern that is too broad — before it has rewritten your text rather than after.

Whole-word matching prevents the classic damage of replacing "cat" and finding you have edited "category" and "concatenate" too. Regex handles the cases plain search cannot: matching a pattern of digits, replacing everything between two markers, or capturing part of a match and reusing it in the replacement.

How to use the Find and Replace

  1. Paste your text. Enter the text you want to edit.
  2. Enter find and replace terms. Type what to search for and what to put in its place.
  3. Set the options. Turn on case sensitivity, whole-word matching or regex as needed.
  4. Check the count, then replace. Confirm the match count looks right before applying.

Find and Replace features

  • Plain text or regular-expression matching
  • Case-sensitive and whole-word options
  • Live count of how many matches will be replaced
  • Capture groups usable in the replacement
  • Copy the result
  • Runs in your browser; nothing is uploaded

Frequently asked questions

What does the match count give me?

A check before you commit. Seeing 400 matches when you expected 4 means the pattern is wrong, and you find that out before the replacement rather than afterwards — which is the safeguard a plain editor does not offer.

When do I need regex rather than plain text?

When the thing you are matching varies: any number, any date, a tag with any attributes. Plain matching handles fixed strings, and it is the better choice when your search text contains characters regex treats specially.

How do I keep part of what I matched?

Wrap it in brackets in the pattern and refer to it as $1 in the replacement. That is how you reorder or reformat rather than simply overwrite — swapping a date from DD/MM to MM/DD, for instance.

Can I undo a replacement?

There is no undo button. Keep your original text elsewhere before a large replacement, and use the match count to confirm the pattern first.

What does whole-word matching change?

It stops a search for cat from matching inside category or concatenate. Without it, short search terms hit far more than intended, which is the most common cause of a replacement going wrong.