About this find and replace text
Replace every nonoverlapping occurrence of a literal search string in a text. The result includes the edited text and the number of replacements, making it useful for small cleanup tasks and repetitive wording changes.
Matching is case sensitive and treats the find field as ordinary characters, not a regular expression. Replacement characters such as dollar signs are inserted literally. A blank replacement deletes each matched occurrence without changing the remaining text.
An empty search is rejected because inserting between every character is usually unintended. Overlapping matches are not counted twice: replacing aa in aaa finds only one occurrence. This tool does not match whole words automatically or retain rich document formatting.
Using Find and Replace Text starts with the Original text and Literal text to find and Replacement text controls. Replacing red with green in red blue red produces green blue green and reports 2 replacements. Select Replace text to update the result below the controls. Read the output together with the find and replace text limitations described here before using it in a document, project or decision. Change one input at a time when comparing alternatives so that you can identify which change affected the result.
Which controls should I check first?
The Find and Replace Text form labels its controls as Original text; Literal text to find; Replacement text; Result. Use those labels to keep the source and settings separate. A sample argument that selects a mode is not additional source text. Choose the setting matching your intended operation before copying a result, and change it explicitly when comparing another mode. The labels describe what this form accepts; the worked examples below demonstrate only the stated supplied values.
How should I interpret this specific operation?
The find value is literal text, not a regex. Matching is case-sensitive and proceeds through nonoverlapping occurrences; finding aa inside aaa produces one replacement. A blank replacement deletes each match. Dollar signs in the replacement are inserted as ordinary characters. Review the count and a representative result before replacing identifiers in source code where unrelated occurrences can share the same spelling.
Worked helper values
These values come from the reproducible calculation examples supplied with this tool. Each row identifies the complete supplied arguments and the returned value. A visible ↵ denotes a line break and ⇥ denotes a tab in text examples. Settings appear alongside source data so that a different mode is not mistaken for an identical input. These are helper calculations, not observations of a live device, fetched target, image decoder, browser preview or downloaded file. Use the stated method above to relate the returned fields to the actual operation.
| Supplied values | Calculated return value |
|---|---|
| red blue red; red; green | {"text": "green blue green", "replacements": 2} |
| aaa; aa; x | {"text": "xa", "replacements": 1} |
What counts as one text element?
Text can be handled as visible graphemes, Unicode code points, bytes, words or complete lines. These units differ. A joined family emoji may look like one character while containing several code points; an accented character may use more than one encoded byte. Use the unit stated in this tool's method before comparing results with an editor or database. Line tools should receive one entry per line, while word tools use their documented whitespace boundaries. A transformation that preserves every visible word can still change separators, and a transformation that preserves every byte does not necessarily operate on complete visible characters.
How should I prepare a representative sample?
Start with a short excerpt containing the features that matter to your job: an accented letter, a number, punctuation, a repeated item, or a blank line. Choose the relevant options and inspect the result before processing the full text. Keep a separate source copy so that you can compare exact spaces and case. If duplicate labels refer to different records, attach identifiers before applying a list operation that could remove them. Text processing cannot infer whether two identical-looking names belong to the same record. A small sample makes delimiter mistakes easier to see than a long unstructured paste.
Which differences should I inspect after conversion?
Compare the first and last entries, any blank entries, and text around punctuation. Check whether the intended operation preserves line endings, joins tokens with spaces, or substitutes a custom delimiter. These are distinct behaviors: reversing words does not preserve the original layout, while reversing lines keeps each line's internal content together. A normalized comparison can intentionally ignore case or accents, whereas an exact comparison retains them. Read the stated method instead of assuming that all text tools share one normalization policy. If another application reports a different count, compare the boundary rules before treating either number as incorrect.
How do I use find and replace text?
Replacing red with green in red blue red produces green blue green and reports 2 replacements.
What does find and replace text support?
Matching is case sensitive and treats the find field as ordinary characters, not a regular expression. Replacement characters such as dollar signs are inserted literally. A blank replacement deletes each matched occurrence without changing the remaining text.
What are the limits of find and replace text?
An empty search is rejected because inserting between every character is usually unintended. Overlapping matches are not counted twice: replacing aa in aaa finds only one occurrence. This tool does not match whole words automatically or retain rich document formatting.