2016-09-16 131 views
0

我只需要在字符串中只保留一個空白字符。下面顯示了示例。刪除字符串中多餘的空白字符

"today is a nice day"      == > "today is a nice day" 

"today  is  a nice day"    == > "today is a nice day" 

"today is a nice  day"    == > "today is a nice day" 

"today  is a  nice day   " == > "today is a nice day" 

非常感謝您的幫助。

這工作對我來說

回答

2

簡單的方法是

右鍵點擊場 - >字段格式 - >段落

更改文本解讀HTML文本,然後單擊確定。

相關問題