title: Little help with regex
body: <p>how can I match these:</p>
  
  <pre><code>(1, 'asd', 'asd2')
  </code></pre>
  
  <p>but not match this:</p>
  
  <pre><code>(1, '(data)', 0)
  </code></pre>
  
  <p>I want to match the ( and ), but not match ( and ) inside ( and ).</p>
  
  <p>Actually these are queries and I want to split them via preg_split.</p>
  
  <pre><code>/[\(*\)]+/
  </code></pre>
  
  <p>splits them, but also splits ( and ) inside them, how can I fix this?</p>
  
  <p>Example:</p>
  
  <p>The data is:</p>
  
  <p>(1, 'user1', 1, 0, 0, 0)(2, 'user(2)', 1, 0, 0, 1)</p>
  
  <p>I want to split them as:</p>
  
  <pre><code>Array(
      0 =&gt; (1, 'user1', 1, 0, 0, 0)
      1 =&gt; (2, 'user(2)', 1, 0, 0, 1)
  );
  </code></pre>
  
  <p>instead of it, its splitted as:</p>
  
  <pre><code>Array(
      0 =&gt; (1, 'user1', 1, 0, 0, 0)
      1 =&gt; (2, 'user
      2 =&gt; 2
      3 =&gt; ', 1, 0, 0, 1)
  );
  </code></pre>