Regex for check the input string is just in persian language

后端 未结 6 846
执笔经年
执笔经年 2020-12-02 15:27

I work with MVC and I am new on it. I want to check input values is only in Persian language (Characters) by [RegularExpression] Validation. So I think to use

6条回答
  •  抹茶落季
    2020-12-02 16:10

    Check first letter and last letter range in Persian I think something like this:

    "^[آ-ی]$"
    

提交回复
热议问题