Regular expression that includes all keyboard characters except '~' and ','

前端 未结 6 1173
余生分开走
余生分开走 2021-02-19 20:03

How do I write a regular expression that includes all keyboard characters except \'~\' and \',\'?

6条回答
  •  心在旅途
    2021-02-19 20:49

    This worked for me:

    [A-Za-z0-9-]+[ 0-9A-Za-z#$%=@!{},`~&*()'<>?.:;_|^/+\t\r\n\[\]"-]*
    

提交回复
热议问题