title: Javascript: Parse linear-gradient to array
body: <p>I have the following string:</p>
  <p><code>&quot;linear-gradient(90deg, rgb(255, 90, 95) 0%, rgb(78, 171, 255) 50%, rgb(1, 169, 141) 100%)&quot;</code></p>
  <p>I would like to get the following output:</p>
  <pre><code>[[
      0,
      [255,90,95]
  ],
  [
      50,
      [78,171,255]
  ],
  [
      100,
      [1,169,141]
  ]]
  </code></pre>
  <p>What would be the easiest way to parse my string ? A regex capturing what's in-between &quot;rgb&quot; wouldn't be enough.</p>