I am using the following regular expression on my regular expression validator
<asp:RegularExpressionValidator ID="revAddress" runat="server" ControlToValidate="txtAddress" ValidationExpression="^[a-zA-Z0-9 ]+$" ErrorMessage="Alphabets and Numbers only" ForeColor="Red"> </asp:RegularExpressionValidator>
The expression being – ^[a-zA-Z0-9 ]+$
This allows letters, numbers and spaces and I tried . \, and it wasn’t working
Now, wondering how to include these special characters.
dot (.) Comma(,) hypen (-) and slash (/)
I appreciate your help.
just add those characters in your class (escaping the hyphen and
/)example jsbin : http://jsbin.com/eweren/2/edit