12345
12345,23456
11223,23432,34563
23123,23456,..............,45678,33224,34567
need regular expression for above in textbox i.e., digit part should be of 5 digit length, if followed by next 5 digit length, then a comma should be in between each part
kindly suggest
Regular expression
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Sep 4, 2013, 1:46 AM EDT
string regExp = @"^\d{5}(,\d{5})*$";
Kunal VaishyaRank #990 · 2K reputationPosted Sep 2, 2013, 1:40 AM EDT
This is tool to generate reg expression please try this
http://gskinner.com/RegExr/