How do I remove repeated spaces in a string?

前端 未结 7 1728
悲哀的现实
悲哀的现实 2020-12-29 20:05

I have a string:

\"foo (2 spaces) bar (3 spaces) baaar (6 spaces) fooo\"

How do I remove repetitious spaces in it so there shou

7条回答
提交回复
热议问题