title: regex phone numbers separated with commas
body: <p>i need a regular expression to validate the field. It is a field of phone numbers, the number consists of 9 characters, numbers will be separated by commas.</p>
  
  <p>Example:</p>
  
  <pre><code>123456789,123456789,123456789
  123456789
  123456789,123456789
  </code></pre>
  
  <p>I have written: </p>
  
  <pre><code>~^(([0-9]{9,9},)+|([0-9]{9,9})+)$~i
  </code></pre>
  
  <p>but validating passes only numbers with commas.</p>
  
  <p>Example: </p>
  
  <pre><code>123456789,123456789,
  123456789,
  </code></pre>
  
  <p>Can you help me with this?</p>