title: capture specific range of comma separated strings in a regex
body: <p>I want to make a regex that captures only the first 3 comma separated strings in</p>
  <p>brand1,brand2,brand3,brand4,brand5,brand6,brand7,brand8,brand9</p>
  <p>So the desired result is keep only
  brand1,brand2,brand3</p>
  <p>What I have tried and doesn't work is:</p>
  <pre><code>^(.*\,.*\,.*)\,.*?$
  </code></pre>