I created the register form in asp.net. And I want to validate Name. This is not included special characters especially ‘@’ character. I used a regular expression validator. I wrote in ValidationExpression that is ^[A-Za-z0-9.’-_\s]+$. It is OK special characters exact ‘@’ character. How to correct regexp. Please help me.
Share
'-_means every character between'and_, which includes a large number of characters.You should escape the
-by writing\-.