title: Regex for retrieving the parameter of the CSS url function
body: <p>I'm trying to get the url portion of the following string:</p>
  
  <pre><code>url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)
  </code></pre>
  
  <p>So the required part if <code>images/ui-bg_highlight-soft_75_cccccc_1x100.png</code>.</p>
  
  <p>Currently I've got this:</p>
  
  <pre><code>url\((?&lt;url&gt;.*)\)
  </code></pre>
  
  <p>But it seems to be choking on the following example:</p>
  
  <pre><code>url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30)
  </code></pre>
  
  <p>Which results in <code>images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30</code>...  </p>
  
  <p>I'd like to make sure that it supports as many variations as possible (additional whitespace etc).</p>
  
  <p>Thanks!<br />
  Kieron </p>
  
  <h3>Edit</h3>
  
  <p>Additionally, I need to ignore the optional quotes ' or " ...</p>
  
  <p>Now, it looks like this:</p>
  
  <pre><code>url\(['|"]?(?&lt;url&gt;[^)]+)\)
  </code></pre>
  
  <p>I can't seem to get it to stop/ ignore the last quote...</p>