如何刪除「」之間的空格? 我有超過100行富文本框,我的句子如下所示,「」之間有空格。字符串修剪刪除空間?
我一句
remove only " railing" spaces of a string in Java
remove only " trailing" spaces of a string in Java
remove only " ling" spaces of a string in Java
remove only " ing" spaces of a string in Java
.
.
.
應該是:
remove only "railing" spaces of a string in Java
remove only "trailing" spaces of a string in Java
remove only "ling" spaces of a string in Java
remove only "ing" spaces of a string in Java
.
.
.
我的代碼
richTextBox1.lines.Trim().Replace("\" \" ", " ");
你應該給它分配回像'richTextBox1 = richTextBox1.lines.Trim()的richTextBox1' – V4Vendetta