FREE WEB TOOL

Find and replace tool

Find and replace text using literal or regular-expression matching, with flags, replace-all or first-only scope, case options, and match-count preview.

Use tool

How to use this tool

Find and replace text using literal or regular-expression matching, with flags, replace-all or first-only scope, case options, and match-count preview.

  1. Set Text, Find, Replace, Regular expression.
  2. Use Replace to process the input.
  3. Compare the result with your source data and return to the input to make corrections.
Regular expression
Default: off

Input and settings example

Text
foo bar foo
Find
foo
Replace
baz

What to know before using it

Regex replacement can match more than expected. Review match count and preview first, and use first-only replacement when testing a pattern.

Common failure points

  • In regex mode, characters such as . * ? have special meaning.
  • Case-insensitive replacement can unintentionally alter IDs or codes.
  • Matching across line breaks depends on pattern and flags.

Practical example

When converting 2026/09/11 to 2026-09-11, confirm a few preview matches before replacing all.