Regex - With Space and Special Characters

后端 未结 5 1269
臣服心动
臣服心动 2020-12-22 02:49

I\'m using the following Regex ^[a-zA-Z0-9]\\s{2,20}$ for input

  • Letters A - Z
  • Letters a - z
  • Numbers 0 - 9

The inp

5条回答
  •  死守一世寂寞
    2020-12-22 03:19

    add characters to your regex code like this~

    ^[a-zA-Z0-9 !@#$%^&*)(]{2,20}$
    

    the \s is not only express space..

提交回复
热议问题