- Sub aaaa多级编号加空格()
- With ActiveDocument.Content.Find
- 'add-space
- .Execute "(^13[0-9]{1,})([!.])", , , 1, , , , , , "\1 \2", 2
- .Execute "(^13[0-9]@.[0-9]{1,})([!.])", , , 1, , , , , , "\1 \2", 2
- .Execute "(^13[0-9]@.[0-9]@.[0-9]{1,})([!.])", , , 1, , , , , , "\1 \2", 2
- 'del-space
- .Execute "(^13[0-9]{1,})([ ^s^t]{1,})([!.])", , , 1, , , , , , "\1 \3", 2
- .Execute "(^13[0-9]@.[0-9]{1,})([ ^s^t]{1,})([!.])", , , 1, , , , , , "\1 \3", 2
- .Execute "(^13[0-9]@.[0-9]@.[0-9]{1,})([ ^s^t]{1,})([!.])", , , 1, , , , , , "\1 \3", 2
- End With
- End Sub
复制代码 |