Regular Expression: ((\d{1,2},)?(\d {3},)*(\d{1,3}) )|(\d+)
I have a textbox that should allow 123,123,123,123 ,123,1 format.TextBox MaxLength is 21.The Problem is it should accept when you give 1(or)12(or)123( or)123,1(or)123 ,12(or)123,123( or)123,123,1(or )123,123,12(or) 123,123,123 same format for the rest.
It is Working fine when u put a RegularExpressi onValidator Control in the Form.But ,our requirement is to get the Expression...
User Profile
Collapse
-
Regarding RegularExpression
-
RegularExpressi on
I have a textbox that should allow 123,123 format..The Problem is it should accept when you give 1(or)12(or)123( or)123,1(or)123 ,12(or)123,123 format.I Need a Regular Expression for this format. If you remove comma(,)between the format it should not accept. -
Regarding RegularExpression
I have a textbox that should allow 123,123 format..The Problem is it should accept when you give 1(or)12(or)123( or)123,1(or)123 ,12(or)123,123 format.I Need a Regular Expression for this format. If you remove comma(,)between the format it should not accept.
No activity results to display
Show More
Leave a comment: