I’m uaing following regular expression for validating decimal or numeric (18,3) numbers,
it does disallow users from entering more than 1 decimal points and all that
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid" ControlToValidate="txtqty" ValidationExpression="^[-+]?[0-9]*\.?[0-9]*([?[0-9]+)?$" ValidationGroup="save"></asp:RegularExpressionValidator>
but i also want to disallow users from entering any value equal to 0 like the following eg:
0.00,
0000.00,
00.0,
0…
I think the problem is that you are using one validator to perform more than one task
Divide your problem:
Validate the format
Validate specific values
Use a simple
CompareValidatorin addition to yourRegularExpressionValidator