take rgb string convert to decimal
<p>i have string <code>'rgb(255,0,0)'</code> and need to get array of decimals.</p>

<p>The following snippet seems to give me the desired results. Any suggestions, concerns, better ways?</p>

<pre><code>var arrRGB = pagedefault.nodelist.style.color.match(/\d+/g); //gives me ["255","0","0"]
arrRGB[0] = Number(arrRGB[0]) / 255;
arrRGB[1] = Number(arrRGB[1]) / 255;
arrRGB[2] = Number(arrRGB[2]) / 255;
</code></pre>
