Text Replacer

Text Replacer
Up to 15 pairs.
Pattern examples
\d{3} — finds any three consecutive digits
\+7\d{10} — finds phone numbers such as +79001234567
<[^>]+> — finds all HTML tags
Result
Copy

Frequently asked questions

Does the replacement respect letter case?

Yes, the search looks for an exact match of the entered fragment, including case – "Text" and "text" count as different strings. To replace every case variant, they need to be entered one at a time.

Why did the replacement affect extra words?

Before a bulk replacement it is worth checking whether the fragment being searched for also appears inside another word, where the replacement would be unwanted: for example, replacing "cat" with "dog" would also affect the word "category". The shorter the fragment being searched for, the higher the risk of that happening.

Are regular expressions supported in the search?

No, the form works with an exact text match, not with regular expressions or wildcard patterns – replacing every number in a text by a mask in one pass is not possible, only the specific string entered.

Can several different fragments be replaced in one pass?

The form is built for one "find and replace" pair per run. For several different replacements, the operation needs to be repeated in sequence for each pair.

What happens if the fragment being searched for is not found in the text?

The text stays unchanged – the replacement only happens where there is an exact match, and no error occurs if there are no matches.

Paste text into the "Content" field, enter the fragment to search for in the "Find" field and what to replace it with in the "Replace" field – the tool replaces every match at once.

How to replace text

  1. Paste the source text. The "Content" field takes the text where the replacement needs to happen.
  2. Specify what to find and what to change it to. The "Find" field is the fragment to look for in the text. The "Replace" field is what it gets replaced with. An empty "Replace" field deletes the found fragment without putting anything in its place.
  3. Press "Replace". The replacement runs across every match in the text at once, not one occurrence at a time.

What find and replace is used for

  • Fixing typos. The same mistake repeated throughout a text.
  • Updating outdated data. Changing a year, a product version number or a company name everywhere in a document at once.
  • Consistent terminology. Bringing the spelling of one term to a single variant throughout the text.
  • Removing a fragment. Quickly stripping out a repeated signature, a tag or boilerplate text.

What's next

After replacing, it is convenient to compare the result with the old version right away using the diff checker, and the text cleaner helps check that the replacement did not leave any double spaces behind.

Related