Replace every occurrence of a phrase with another, with optional case-sensitive matching.
Example
With case-sensitive matching, replacing “brown” with “red” turns “The brown fox and the Brown dog.” into “The red fox and the Brown dog.” Ignore case and both become red.
Calculation method
The search phrase is treated as literal text rather than a regular expression, so symbols match as ordinary characters and every match is replaced at once. The replacement is inserted exactly as typed.
Important notes
An empty search phrase is rejected because it would match everywhere. Because all matches change together, review the whole result before replacing an important document, and nothing you type leaves the page.
Literal matching, every occurrence
Type the text, the phrase to find and the replacement. Every match is replaced at once. The search is literal, not a regular expression, so symbols are matched as ordinary characters: replacing “.” with “[dot]” in “Price: $5.00 (approx.)” changes both full stops and leaves the dollar sign and brackets alone. This makes the tool predictable for prices, file paths and code snippets that contain characters with special meaning in pattern languages.
Case sensitivity
With case-sensitive matching, “brown” replaces only the lowercase word, so “The brown fox and the Brown dog.” becomes “The red fox and the Brown dog.” Turn it off to replace both forms, giving “The red fox and the red dog.” The replacement is inserted exactly as typed, so a capitalised word at the start of a sentence becomes lowercase if your replacement is lowercase. Review sentence starts and proper nouns after an ignore-case replacement.
Partial matches can surprise you
Matches are not limited to whole words. Replacing “cat” with “dog” in “cat category concat” gives “dog dogegory condog”, and changing British “our” to American “or” turns “colour, flavour and your tour” into “color, flavor and yor tor”. Include surrounding spaces or punctuation in the search phrase to narrow it, for example “ cat ”, and check the whole result before replacing the original document. An empty search phrase is rejected because it would match everywhere.
Worked examples| Input | Result |
|---|
The brown fox and the Brown dog. · brown → red · case-sensitive | The red fox and the Brown dog. |
The brown fox and the Brown dog. · brown → red · ignore case | The red fox and the red dog. |
Price: $5.00 (approx.) · . → [dot] | Price: $5[dot]00 (approx[dot]) |
cat category concat · cat → dog | dog dogegory condog |
colour, flavour and your tour · our → or | color, flavor and yor tor |
Frequently asked questions
Can I use regular expressions?
No, and that is deliberate. Search characters are escaped and matched literally, which keeps prices, file paths and code snippets predictable: replacing “.” with “[dot]” in “Price: $5.00 (approx.)” changes both full stops and leaves the dollar sign and brackets untouched.
Why did partial words change too?
Because matches are not limited to whole words. Replacing “cat” with “dog” in “cat category concat” gives “dog dogegory condog”, and changing British “our” to “or” turns “colour, flavour and your tour” into “color, flavor and yor tor”. Include the surrounding spaces or punctuation in the search phrase to narrow it.
What should I check after an ignore-case replacement?
Sentence starts and proper nouns. The replacement goes in exactly as typed, so a capitalised word at the start of a sentence becomes lowercase if your replacement is lowercase. Read through the output before copying it back over the original.