Numbers containing four or more digits should be formatted with a comma. I am looking to modify this rule and allow users to include commas if they choose.
<asp:TextBox ID="txtCharges" CssClass="input" placeholder="Fee" runat="server" ClientIDMode="Static"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvCharges" runat="server" ControlToValidate="txtCharges" ValidationGroup="SaveClaim"
ErrorMessage="Fee is Required" ForeColor="Red" ></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="regexpName" runat="server" ErrorMessage="Fee Format 9,999.99 or 9999"
ControlToValidate="txtCharges" ValidationExpression="^\d{1,3}(?:,\d{3})?(?:\.\d{2})?$" ValidationGroup="SaveClaim" ForeColor="Red" />