b2KIT

Find & Replace in Text

Search and replace text with support for regex, case-sensitive, and whole-word matching.

How to Use Find & Replace in Text

  1. 1

    Paste your text

    Enter the text content you want to search through.

  2. 2

    Enter search term

    Type the word or pattern you want to find.

  3. 3

    Enter replacement

    Type the text to replace each match with.

  4. 4

    Apply changes

    Click replace all or step through matches one at a time.

Tested tool guide Text and writing tools Checked July 30, 2026

What Find & Replace in Text does, with a checked example

This page finds every match in a block of text, highlights the occurrences, and replaces them in one operation. Literal mode escapes regular-expression punctuation, while regex mode treats the find field as an ECMAScript pattern. Case sensitivity changes the regular-expression flags but never modifies the source text until Replace All is selected.

Worked example

A concrete input and expected output from the current implementation.

Input

Source: bee2 BEE2 Bee2
Find: bee2
Replace: b2KIT
Case sensitive: off

Expected output

Source: b2KIT b2KIT b2KIT

The global, case-insensitive literal search matches all three case variants and replaces each with the same supplied value.

How the result is produced

1

Literal mode protects punctuation

Characters such as dot, star, plus, brackets, and parentheses are escaped before the pattern is built. They match themselves instead of acting as regex operators.

2

Regex mode exposes capture behavior

Replacement strings can use JavaScript replacement tokens such as $1 when the pattern contains capture groups. Invalid patterns are reported before replacement.

Good uses

  • Rename a repeated label in copied text.
  • Normalize a patterned value with a tested regular expression.
  • Preview match count before applying a bulk change elsewhere.

Limits and checks

  • Replacement text has special dollar-sign tokens in regex operations.
  • A broad pattern can match more text than expected.
  • Keep an original copy before applying the result to important files.

Common questions

Why does a dot match any character in regex mode?

Dot is a regular-expression wildcard. Escape it as a backslash followed by dot, or switch to literal mode to match an actual period.

Does Replace All alter the input box?

No. The result appears separately, allowing the original and transformed text to be compared before copying.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools