🀄 Chinese Character Extractor

📐 工作原理與說明
逐字元掃描,命中條件為「勾選漢字且該字元是漢字」或「勾選中文標點且該字元是中文標點」。按詞模式:連續漢字累積成一個詞,遇到非漢字先把當前詞壓入結果,若該字元是中文標點且勾選了標點則單獨壓入;逐字模式:命中的字元逐個壓入結果。統計命中字元總數,輸出時勾選分隔符則用空格連線,否則直接拼接;無結果時提示未找到中文字元

Strip out English letters, digits and punctuation and keep only Chinese characters, useful for cleaning scraped foreign pages or preparing Chinese-language corpora.

提取選項

共找到: 0 個字元

📋 提取結果

請輸入文本...

📚 深度解析:提取中文

💡 常見使用場景

  • 從混合文本抽中文:去除英文/數字/符號,得到純中文,便於中文 NLP 或校對。
  • 清洗外文資料:保留中文正文、剔除夾雜的拉丁字元。
  • 雙語對照準備:先抽中文再抽英文,分別處理。
從「你好world 123」抽中文
輸入「你好world 123」,提取中文輸出「你好」,過濾掉拉丁字母與數字;可用於統計純中文字數或去噪。

❓ 常見問題(FAQ)

中文標點保留嗎?
預設保留常用中文標點(,。!?等),只去非中文字母數字;如需連標點也去,用「僅保留漢字」模式。
繁體算中文嗎?
算。繁體漢字屬 CJK 統一區,會被保留;如需簡繁分離可先轉簡再提取。

Formula & Standard References

Item Formula / Note Source / Standard
Script property Chinese detection relies on the script property where unified ideographs carry Han Unicode UAX #24, script property
Block ranges common ideographs sit in the basic block while extensions hold rare variants Unicode CJK Unified Ideographs block, U+4E00
Punctuation boundary Chinese punctuation belongs to general punctuation and is excluded from ideographs GB/T 15834-2011, punctuation usage
⚠️ 使用說明與注意事項