PHP or Javascript - Getting values out of a string : <p>I have the following string:</p>

<pre><code>[(33, 165) (1423, 254)]
</code></pre>

<p>How can I bring the 4 numbers into an Array? I tried with regex so far.</p>

<p>Result should be an array containing 33,165,1423,254.</p>

<p>I can use a PHP and Javascript solution.</p>
