how to allow characters, space and dot in regular expression?

前端 未结 3 533
被撕碎了的回忆
被撕碎了的回忆 2021-01-26 06:32
ValidationExpression=\"^[a-zA-Z ]+$\"

this is my current regular expression but it does not accept .(dot). I need to use it for names. like \"R

3条回答
  •  既然无缘
    2021-01-26 07:00

    This should work:

    /[a-zA-Z]|\d|\s|\.*/
    
    • Any letter a-z
    • Any digit 0-9
    • Any whitespace
    • Any dots

提交回复
热议问题