- Sub a0712_DeleteSpace_Update()
- Dim l!
- l = Timer
- With ActiveDocument.Content.Find
- .Execute "^l", , , 0, , , , , , "^p", 2
- .Execute "(^13)([ ^s^t]{1,})", , , 1, , , , , , "\1", 2
- .Execute "([ ^s^t]{1,})(^13)", , , 1, , , , , , "\2", 2
- .Execute "[ ^s^t]{1,}", , , 1, , , , , , " ", 2
- .Execute "([.:;,\!\?])([a-zA-Z0-9a-zA-Z0-9])", , , 1, , , , , , "\1 \2", 2
- .Execute "( )([.:;,\!\?])", , , 1, , , , , , "\2", 2
- .Execute "([!^1-^127])( )", , , 1, , , , , , "\1", 2
- .Execute "( )([!^1-^127])", , , 1, , , , , , "\2", 2
- End With
- MsgBox "Complete!" & vbCr & "Cost-Time = " & Round(Timer - l, 2) & " Seconds.", 0 + 48
- End Sub
复制代码 |