What is the Regular Expression For “Not Whitespace and Not a hyphen”

前端 未结 5 851
既然无缘
既然无缘 2020-12-03 04:18

I tried this but it doesn\'t work :

[^\\s-]

Any Ideas?

5条回答
  •  执笔经年
    2020-12-03 04:56

    Which programming language are you using? May be you just need to escape the backslash like "[^\\s-]"

提交回复
热议问题