NET. I have created a regex validator to check for special characters means I donot want any special characters in username. The following is the code
Regex
Change your regex to ^[a-zA-Z0-9_@.-]+$. Here ^ denotes the beginning of a string, $ is the end of the string.
^[a-zA-Z0-9_@.-]+$
^
$