🔎

Find & Replace

Replace repeated words or phrases at once

Find & Replace — what it does

Paste text, enter what to find and what to replace it with, choose whether case matters, and every occurrence is swapped in one pass. It is the plain, dependable operation you reach for when a word, a name or a piece of boilerplate has to change consistently across a whole document.

Worked example

A supplier note in which the company name must change everywhere. Find: Acme Ltd, Replace with: Acme Holdings Ltd, with the case-sensitive box left unticked.

Input — pasted text

Supplier: Acme Ltd
Invoices from ACME LTD are due in 30 days.
Contact acme ltd accounts at ap@example.com.
The academic calendar is unaffected.

Output

Supplier: Acme Holdings Ltd
Invoices from Acme Holdings Ltd are due in 30 days.
Contact Acme Holdings Ltd accounts at ap@example.com.
The academic calendar is unaffected.

With case matching off, ACME LTD and acme ltd are replaced as well, and all three take the capitalisation of the replacement text; 'academic' is untouched because the whole phrase has to match.

When this tool helps

  • Updating a renamed product, client or place name throughout a draft.
  • Swapping placeholder text for real values in a template you reuse.
  • Removing a repeated phrase by replacing it with nothing at all.

How to use it

  1. Paste the text into the input area.
  2. Enter the find text and the replacement.
  3. Set case sensitivity as needed.
  4. Process and copy the result.

Accuracy, limits, and good practice

  • Short search terms match inside longer words — replacing 'art' rewrites 'start' and 'partner' unless you include surrounding spaces.
  • Case-sensitive matching protects proper nouns and acronyms; leave it off when the text mixes capitalisation inconsistently.
  • Work on a copy of important text. Replacement is applied to everything at once and there is no per-occurrence confirmation.
  • Search for the replacement text afterwards to confirm the count you expected: a replacement that hit twice as many places as intended looks fine until someone reads it.

Frequently asked questions

Can I use regular expressions?

This tool matches literal text. For patterns, wildcards and capture groups, use the regex tester to build and verify an expression first.

How do I delete a phrase?

Leave the replacement field empty; every occurrence is removed and the surrounding text closes up.

Does it work on very long documents?

Yes. Processing is local and handles long texts quickly, limited only by browser memory.

Can I replace across line breaks?

Matching works on the text as pasted, so a phrase split across two lines will not match a single-line search term.

Do brackets, dots or other special characters in the search text cause trouble?

No. The search text is matched literally, not as a pattern: replacing (30 days) with [net 30] changes exactly that text and nothing else.

What happens if the Find box is empty?

The text is copied to the output box unchanged. Nothing is replaced and no error is shown, so an empty Find box with a filled Replace box does not insert anything.

Related tools on this site

Everything above runs inside this page. Find & Replace needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

尋找與取代能做什麼

貼上文字、輸入要找的內容與替換內容、選擇是否區分大小寫,所有出現處會一次替換完成。當某個詞、名稱或樣板句需要在整份文件中一致更新時,這就是最樸實可靠的操作。

實際範例

一段供應商備註,公司名稱必須全部改掉。尋找:Acme Ltd,取代為:Acme Holdings Ltd,區分大小寫未勾選。

輸入:貼上的文字

Supplier: Acme Ltd
Invoices from ACME LTD are due in 30 days.
Contact acme ltd accounts at ap@example.com.
The academic calendar is unaffected.

輸出

Supplier: Acme Holdings Ltd
Invoices from Acme Holdings Ltd are due in 30 days.
Contact Acme Holdings Ltd accounts at ap@example.com.
The academic calendar is unaffected.

不區分大小寫時,ACME LTD 和 acme ltd 也會被取代,而且三處都採用取代文字本身的大小寫;academic 不受影響,因為必須整個詞組相符。

什麼時候用得上

  • 把改名後的產品、客戶或地名更新到整份草稿。
  • 把重複使用的範本中的佔位文字換成實際內容。
  • 把重複出現的句子替換成空白,等於整批刪除。

使用步驟

  1. 把文字貼進輸入區。
  2. 輸入要尋找的文字與替換文字。
  3. 視需要設定是否區分大小寫。
  4. 執行處理並複製結果。

精確度、限制與實務建議

  • 短字串會命中長字內部——替換 art 會改到 start 與 partner,除非把前後空格納入。
  • 區分大小寫可保護專有名詞與縮寫;文中大小寫本來就不一致時則建議關閉。
  • 重要文字請先備份。替換是一次全套用,沒有逐處確認的機制。
  • 取代後請反過來搜尋替換文字,確認次數是否符合預期:命中兩倍於預期的取代,在有人真的去讀之前都看起來沒事。

常見問題

可以用正規表示式嗎?

本工具只比對字面文字。需要樣式、萬用字元或擷取群組,請先用正規表示式測試工具寫好並驗證。

怎麼刪除一段文字?

把替換欄留空即可,所有出現處都會移除,前後文字自然接上。

很長的文件也能處理嗎?

可以。處理在本機進行、速度很快,只受瀏覽器記憶體限制。

可以跨行取代嗎?

比對針對貼上的原文進行,因此被斷成兩行的句子,用單行搜尋字串是找不到的。

搜尋文字裡的括號、句點等特殊字元會出問題嗎?

不會。搜尋文字是按字面比對,不是當作樣式:把 (30 days) 取代為 [net 30] 只會改掉這段文字,其他不動。

「尋找」欄位留空會怎樣?

文字會原樣複製到輸出區。不會取代任何內容,也不會顯示錯誤,所以尋找欄位空白、取代欄位有字時,不會插入任何東西。

本站相關工具

以上步驟全部在這個頁面內完成,尋找與取代 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。