I need this regex to avoid consecutive spaces:

后端 未结 0 578
失恋的感觉
失恋的感觉 2021-01-06 01:27

I have this regular expression and i need to avoid all the consecutives spaces:

const regex = new RegExp(/^[a-zA-ZÀ-úñÑ\\s]+$/g);
相关标签:
回答
  • 消灭零回复
提交回复
热议问题