Find and Replace Text

Replace matching text throughout a document using literal text or regular expressions.

Input

Processed on your device

How to use Find and Replace Text

Change repeated wording in a document or clean patterned text using a literal search or JavaScript regular expression. Review the replacement count and the resulting text before using it.

  1. Paste the source, enter Find and fill Replace with.
  2. Leave replacement empty to delete matches.
  3. Enable Regular expression for a pattern or keep literal matching for exact punctuation.
  4. Choose whether case matters and run the replacement.
  5. Select Process input and review the result.

Example use

Change an old product label across a help note. Start with literal matching when the name contains punctuation. Check for occurrences in examples and other contexts before adopting the result.

Output and compatibility

This tool changes every match for its selected rule. Case-insensitive and broad pattern matches can cover more text than expected. It returns plain text without preserving rich formatting. Regex syntax follows JavaScript, which can differ from desktop tools.

Test what ought to remain unchanged

Include a source line that contains the search phrase as part of a longer word or with new punctuation. Verify that your rule leaves the right content alone before applying it across a long document. Compare the saved result with its original before replacing either.

Troubleshooting

If the replacement count is unexpected, narrow the phrase or test on a shorter sample. Use Regex Tester to check pattern behavior separately. If punctuation matches too widely, turn off Regular expression or escape the pattern where necessary.

Review the before-and-after result with Text Diff Checker if the source has sections that must remain untouched.

Frequently asked questions

Can I remove a phrase?

Leave Replace with blank to delete the matched text.

Do I need regex to match punctuation literally?

Use the default literal mode for exact characters.

Can I match different capitalization?

Enable Ignore case and check which alternatives actually change.

Does the tool save an edited file instead of overwriting my source?

It returns separate output for copying or download.

Can I keep complete matching lines?

Use Filter Text Lines when the result should retain or drop lines instead of editing their contents.

Find a tool