Replace leading and trailing space using regex

前端 未结 0 1003
误落风尘
误落风尘 2021-01-22 10:57

I need to replace leading and trailing space inside a string in Javascript with a regex, leaving all the others spaces inside the string.

const          


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