What is the regular expression for matching that contains no white space in between text?

后端 未结 3 546
渐次进展
渐次进展 2020-12-10 16:53

I am looking for a regular expression for matching that contains no white space in between text but it may or may not have white space at start or end of text.

3条回答
  •  执笔经年
    2020-12-10 17:48

    Just found answer myself. So I am writing it here so that It may be helpful for someone else.
    ^\s*\S*\s*$

提交回复
热议问题