si 一键去除空格
^null\n|^[,、。:;!?…~]+\n?|[\u0000\u200b-\u200d\u2028\u2029]|[\ufe00-\ufe0f\ufeff]|(?m)^[~_]+|(?<=[!?])[!?]+(?=[!?])|\b[。—…~\-]+(?<!\d\-)(?=[!?])|(?<=^[“‘]|[(【])[。,、!?—…~\u002e]+\b|(?<=[。!?—…]”)[,、。:!?—…\.]+|(?<=[。!?…])[~_\?\!]+|[~_\?\!]+(?=[。!?…])|(?<=[\n:]“|[。:;!?…~]\n?|——)(?!(?<=[:…])\.\.)[,、\.]+|[,、]+\n?(?=[,、。:;!?…~]|——)|(?<=[\n:]“[^\n“”]{1,20}[。!?~][“”])…+|(?<=[。!?][”])[…—]+$|\b\s+(?=[:;])|(?<=“[^\n:“”‘’""'']{0,36})(?:[‘’""'']|$\s+)(?=[^\n:“”‘’""'']{0,36}”)|\b\-(?=\-\b)|([。—…\-~])\1*(?=\1\1)|([^\s\w])\2*(?=\2{3})|(?<=([。!?—…]))$\s+(?=\3)|$(?=(?<=\b[说道问答忖曰]:|(?:[《(【]|^[“‘]|[\w:][“‘])[\w,、]{0,20})|(?<=[^。!?;—…][:,、])\s+[“‘"]|(?<=[\u4e00-\u9fcc])\s+“\w{1,7}”|\s+[\w,、]{0,20}[》)】]|\s+[”’]|\s+[\w,、]{0,20}[。!?—…~]{0,6}[”’"][。!?—…~]{0,6}$)\s+|\r(?=\n)|^\s+|(?<=[。:;!?—…~\.\-》)】”])\h+|\h+(?=[。:;!?—…~\n\.\-《(【])|\h?[\u2551-\u2767〒〓&&[^╳█■□★☆◆◇◉◎●⚊⚋]]+\h?|<>
试试看行不行,阅读的净化规则
TXTformat里就有这个正则啊