Regex to match more than 2 white spaces but not new line

前端 未结 0 1690
既然无缘
既然无缘 2020-12-23 04:06

I want to replace all more than 2 white spaces in a string but not new lines, I have this regex: \\s{2,} but it is also matching new lines.

How can I ma

相关标签:
回答
  • 消灭零回复
提交回复
热议问题