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

前端 未结 3 514
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-26 06:58

    Validation for must contain a number, a character and a dot. Sometimes it must include a space.

    For example:

    version1.1.1-----valid
                version 1.1.1---valid
                  v1.1.----------not valid(not end with dot)
                 .v1.1--------not valid(not start with dot)
                   v1----valid
                   version 12.1.1--------valid
    

    It must contain character and number dot and space are necessary if its dot not start with dot and not end with dot

提交回复
热议问题