I need to ensure that the input value contains at least one dot, so i use the following:
<asp:RegularExpressionValidator runat="server" ControlToValidate="MyInput" Text="*" ErrorMessage="must contain at least one dot" ValidationExpression="\.+" />
And that doesn't work. By inspecting the page source i can see that ASP.NET escapes the backslash character so in java-script it looks like "\\.+"
. Why does it do so and how do i prevent RegularExpressionValidator from escaping it?