Hi Experts
I am having a requirement where the ten digit number should not end in 3 consecutive zeroes.So i am trying to solve this with a regular expression.Please can anyone help me with a regular expression for a ten digit number which should not accept 3 consecutive zeros at the end...
Thanks in advance
Regular Expression
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted May 7, 2012, 5:05 AM EDT
string regExp = @"^\d{7}(?!000)\d{3}$";
karthik v115 reputationPosted May 7, 2012, 1:07 PM EDT