Regex only allow letters and some characters

前端 未结 4 1032
孤街浪徒
孤街浪徒 2021-02-14 18:04

I am attempting to create a regex that only allows letters upper or lowercase, and the characters of space, \'-\', \',\' \'.\', \'(\', and \')\'. This is what I have so far but

4条回答
  •  没有蜡笔的小新
    2021-02-14 18:30

    I tried that with javascript and it works fine. The others are correct, though. If in javascript, check if everything works fine or else the check will not happen at all.

提交回复
热议问题