What should be the regular expression in JavaScript
<p>I have string</p>

<pre><code>     str = "Value((10 20,30 40),(50 60,70 80,90 100))"
</code></pre>

<p>What should be the regular expression to get the value in the following format :</p>

<p>option 1:</p>

<pre><code>strArray[0]  = 10 20 , 30 40;
strArray[1] = 50 60 , 70 80 , 90 100;
</code></pre>

<p>option 2</p>

<pre><code>strArray[0][0] = 10 20
strArray[0][1] = 30 40
strArray[1][0] = 50 60
strArray[1][1] = 70 80
strArray[1][2] = 90 100
</code></pre>
