🧼 文本清洗Text Clean

勾选需要的清洗规则,结果实时预览。可组合多项操作:去控制符、去 HTML、去首尾空格、删空行、折叠空格、删指定字符、规范换行。Select cleaning rules and preview instantly. Combine multiple operations: strip control chars, HTML, trim, drop empty lines and more.

① 输入文本① Input

② 清洗规则(可多选)② Rules (multi-select)

③ 清洗结果③ Result

使用说明How to use

怎么用How to use
  1. 粘贴含杂质的文本Paste messy text
  2. 勾选清洗规则:去空行、折叠空格、去 HTML、删指定字符等Tick rules: drop blanks, collapse spaces, strip HTML, remove chars
  3. 查看干净结果Review the cleaned result

示例:多空格+空行 → 一键整理为规整文本Example: Extra spaces/blank lines → tidy output

全程在你的浏览器本地完成,文本不会上传服务器。Runs entirely in your browser; your text is never uploaded.

勾选规则后结果会即时更新,可同时启用多条规则按固定顺序执行:先去控制符与 HTML,再去空格、删空行、折叠空格、删指定字符,最后统一换行。适合清洗从网页或文档复制来的杂乱文本。Results update live. Rules run in a fixed order: control chars & HTML first, then trim, drop empty lines, collapse spaces, remove specific chars, finally normalize newlines. Great for cleaning messy text copied from web pages.

新增「模式删除/替换」:用通配符 * 匹配任意内容,例如 [[*]] 可一次性清除文本中的 [[11]]、[[1]]、[[5]] 等标记;在「替换为」中留空即删除,填 $1 可只保留 * 部分(如提取方括号内的数字),填 $& 保留被匹配的整体。勾选「跨行匹配」后 * 可跨越换行,能整块删除以 [[ 开头、]] 结尾且中间含换行的标记。New “Pattern delete/replace”: use wildcard * to match anything — e.g. [[*]] clears marks like [[11]], [[1]], [[5]] at once. Leave “Replace with” empty to delete, use $1 to keep only the * part (e.g. the number inside), or $& to keep the whole match. With “Cross-line” on, * spans newlines so a [[ … ]] block containing line breaks is removed as a whole.