I use ASP.NET and C#.
I have a RegularExpressionValidator control on a Web Form Page, and I use a custom regex to check the minim an maximum length for an input TextBox.
I need to modify the regex to check just a minimum value but set as UNLIMITED the maximum value. So validation for a TextBox would be only for the minimum length.
Any ideas how to change by regex?
Here my code. Thanks for your help!
<asp:RegularExpressionValidator ID="uxRegularExpressionValidatorHighlightMaxLengthDisplayer"
runat="server" ControlToValidate="uxSummaryInputer" ErrorMessage="Highlight is too long or short. Change the field accordingly."
ValidationExpression="^.{64,256}$">*</asp:RegularExpressionValidator>
Just change it to be: