Tools.GamesLoop Logo
TOOLS.GAMESLOOP160+ Free Online Tools

Find and Replace Text

Search and replace across text, with regular expression support.

Find and Replace Text

Instant online text processing

Words19
Characters99
Sentences2
Paragraphs1
Reading Time1 min
Advertisement
Ad Space (auto) — Configurable via NEXT_PUBLIC_ADSENSE_CLIENT

What does Find and Replace Text do?

Replace text across a whole document with options for case sensitivity, whole-word matching and full regular expressions with capture groups. Matches are highlighted and counted before you commit.

How to Use Find and Replace Text

  1. 1
    Paste your textAny length.
  2. 2
    Enter what to findPlain text, or switch on regex mode.
  3. 3
    Enter the replacementMatches are highlighted as you type.
  4. 4
    Apply and copyThe replacement count is shown.

Key Features

  • Plain text or full regular expression matching
  • Case-sensitive and whole-word options
  • Capture group references such as $1 in the replacement
  • Live match count and highlighting before you replace
  • Multiple find-and-replace rules applied in order
  • Safe handling of invalid regex, with the error explained

Frequently Asked Questions

How do I use capture groups?

Wrap part of the pattern in parentheses and reference it with $1, $2 and so on. Finding (\w+)@(\w+) and replacing with $2/$1 swaps the two halves of every match.

What does whole-word matching do?

It requires a word boundary at each end, so searching for "cat" will not match "category" or "concatenate". It is the fix for the classic replace-all disaster.

Can I replace line breaks?

Yes, in regex mode. Use \n for a line feed and \r\n for a Windows line ending. Replacing \n with a space joins every line into one.

What happens if my regex is invalid?

The tool reports the error and leaves your text untouched. Nothing is replaced until the pattern compiles.