---
title: "文字篩選 - 依條件篩選文字行，支援包含、不包含與正規表達式比對。 - AllTools - 全能工具箱"
description: "依關鍵字或正規表達式篩選要保留或排除的指定行，支援區分大小寫與多條件組合。 貼上即可處理，結果可直接複製，全程在本地端執行。 支援中英文與多行文字。"
canonical_url: "https://tool.warmday.wang/zh-Hant/text/filter"
meta:
  author: AllTools
  keywords: "線上工具箱, AllTools, 實用工具, 生活常用, 數學計算, 文字處理, 圖片處理, 開發者工具, PDF 工具, 單位換算, 免費工具, 免登入工具"
  "og:description": "依關鍵字或正規表達式篩選要保留或排除的指定行，支援區分大小寫與多條件組合。 貼上即可處理，結果可直接複製，全程在本地端執行。 支援中英文與多行文字。"
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools - 全能工具箱 Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "文字篩選 - 依條件篩選文字行，支援包含、不包含與正規表達式比對。"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **文字篩選**

依條件篩選文字行，支援包含、不包含與正規表達式比對。

## **輸入文字**

## **篩選設定**

**篩選條件**

**篩選模式**

**使用正規表達式**

**區分大小寫**

**反轉（保留不符合的行）**

0 行 → 篩選後 0 行

### **使用說明**

#### **功能介紹**

依關鍵字或正規表達式篩選要保留或排除的指定行，支援區分大小寫與多條件組合。

#### **操作步驟**

貼上文字內容，輸入篩選關鍵字或正規表達式，選擇保留或排除模式，查看篩選結果。

#### **注意事項**

正規表達式模式需遵循 JavaScript 正規表達式語法；關鍵字為空時會顯示全部行。

## **同類工具**

同一個分類下還有這些 · 文字處理

[**顏文字大全**收錄大量可愛顏文字與特殊符號，分類瀏覽並一鍵複製，聊天、貼文與暱稱裝飾都能直接貼上使用。](https://tool.warmday.wang/zh-Hant/text/kaomoji) [**字數統計**統計文字的字數、字元數、行數與段落數，支援中英文混合與即時更新，交稿前確認篇幅是否符合限制。](https://tool.warmday.wang/zh-Hant/text/count) [**文字比對**並排比對兩段文字的差異，逐行標示新增、刪除與修改處，支援忽略空白與大小寫，校稿與版本比對更精準。](https://tool.warmday.wang/zh-Hant/text/diff) [**文字去重**依行移除重複內容並保留首次出現的順序，可選擇忽略空白與大小寫，整理名單與清理資料時省時省力。](https://tool.warmday.wang/zh-Hant/text/deduplicate) [**文字排序**依行排序（升冪/降冪/自然排序/隨機）](https://tool.warmday.wang/zh-Hant/text/sort) [**文字尋找取代**支援一般文字與正規表達式的尋找取代，可預覽符合項目與取代結果，批次整理文案與程式碼時很實用。](https://tool.warmday.wang/zh-Hant/text/find-replace)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/zh-Hant#website","url":"https://tool.warmday.wang/zh-Hant","name":"AllTools - 全能工具箱","inLanguage":"zh-Hant","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/zh-Hant?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/zh-Hant/text/filter#webpage","url":"https://tool.warmday.wang/zh-Hant/text/filter","isPartOf":{"@id":"https://tool.warmday.wang/zh-Hant#website"},"inLanguage":"zh-Hant","name":"文字篩選 - 依條件篩選文字行，支援包含、不包含與正規表達式比對。","description":"依關鍵字或正規表達式篩選要保留或排除的指定行，支援區分大小寫與多條件組合。 貼上即可處理，結果可直接複製，全程在本地端執行。 支援中英文與多行文字。"},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/zh-Hant/text/filter#app","name":"文字篩選 - 依條件篩選文字行，支援包含、不包含與正規表達式比對。","description":"依關鍵字或正規表達式篩選要保留或排除的指定行，支援區分大小寫與多條件組合。 貼上即可處理，結果可直接複製，全程在本地端執行。 支援中英文與多行文字。","url":"https://tool.warmday.wang/zh-Hant/text/filter","applicationCategory":"UtilitiesApplication","operatingSystem":"Web","inLanguage":"zh-Hant","isPartOf":{"@id":"https://tool.warmday.wang/zh-Hant/text/filter#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/zh-Hant/text/filter#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"首頁","item":"https://tool.warmday.wang/zh-Hant"},{"@type":"ListItem","position":2,"name":"文字處理","item":"https://tool.warmday.wang/zh-Hant/text"},{"@type":"ListItem","position":3,"name":"文字過濾","item":"https://tool.warmday.wang/zh-Hant/text/filter"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
