Tool Hub

尋找與取代(多個)

依序套用多組尋找/取代規則 — 每條規則可使用字串或正規表示式

依序將一組尋找/取代規則套用至文字。每條規則可為字串或正規表示式,並支援不區分大小寫選項。適用於批次文字清理、重新命名或樣板替換。

取代規則 (依序套用)

輸出

使用方法

  1. Paste the source text into the input area。
  2. Add one or more replacement rules by clicking the "+ Rule" button — each rule has a pattern field and a replacement field。
  3. Toggle the regex switch per rule to use a regular expression instead of a literal string, and optionally enable case-insensitive matching。
  4. Reorder rules with the up/down arrows: rules run in order so each rule's output feeds the next。
  5. Copy the processed result from the output area — all processing is local in your browser。

範例

  • Adding a rule with pattern "foo" and replacement "bar" changes every occurrence of "foo" to "bar" throughout the text。
  • Using the regex pattern \d{4}-\d{2}-\d{2} with replacement REDACTED replaces every ISO date in the text in one pass。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.