title: Can a regular expression distinguishes a string that contains constant number of lengths of each clause in JavaScript?
body: <p>Sorry, my English is poor. Here are examples:</p>
  
  <pre><code>'000,111,123,486' //true
  '000' //true
  '000,111,123,486,781' //true
  '000,111,123,486,781,471' //true
  '868,1,662' //false because the length of the second clause is 1.
  '000,' //false because there is only 1 clause so the comma is not allowed.
  </code></pre>
  
  <p>I need a regex for matching this pattern. Thank you.</p>