🚫 Character Remover
📐 工作原理與說明
按勾選項動態拼字元類:數字 0-9、小寫 a-z、大寫 A-Z、中文 \u4e00-\u9fff、中英文標點、空白 \s、特殊符號、以及表情區間(代理對 \uD800-\uDBFF 與 \uDC00-\uDFFF 加 \u2600-\u27BF、\u1F300-\u1FAFF)。大小寫敏感時正則取 g,否則取 gi,把命中字元整體刪除。自定義字元先對 . * + ? ^ $ { } ( ) | [ ] \\ 轉義後再併入字元類;啟用自定義正則時按該正則直接替換為空;正則非法時輸出錯誤資訊
Remove digits or specified characters according to your rules, cleaning redundant symbols in bulk from text copied out of PDFs and web pages.
移除選項
📋 結果
請輸入文本...
📚 深度解析:去除數字
💡 常見使用場景
- 清洗純文字:從混合文本去掉金額/編號,得到可讀正文。
- 準備中文語料:去數字後做字頻或分詞,不被阿拉伯數字干擾。
- 脫敏預檢:先去數字再看是否還需去其他敏感資訊。
從「訂單123已發貨」去數字
輸入「訂單123已發貨」,去數字得「訂單已發貨」;適合把帶編號的句子轉成模板文案做批處理。
❓ 常見問題(FAQ)
- 小數點和負號也去嗎?
- 去。凡數字字元(0-9 及關聯符號)均移除;若想保留年份等,請改用「僅保留中文/英文」類工具反向處理。
- 會誤刪日期嗎?
- 會,日期中的數字一併去除;如需保留日期請先用提取日期工具單獨保留,再做去數字。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Digit category | digit removal matches the Nd category covering local digit shapes | Unicode UAX #44, character database |
| Adjacent whitespace | removing digits leaves runs of whitespace that need collapsing | Unicode UAX #29, word boundaries |
| Semantic markers | decimal points and signs are not digits and removing them changes meaning | ISO 80000-2, mathematical signs |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準