title: How to extract image filename from style/background-image tag?
body: <p>I found lots of posts regarding estracting a filename from an img-tag, but none from a CSS inline style tag. Here's the source string</p>
  
  <pre><code>&lt;span style="width: 40px; height: 30px; background-image: url("./files/foo/bar.png");" class="bar"&gt;FOO&lt;/span&gt;
  </code></pre>
  
  <p>What I want to get is <strong>bar.png</strong>.</p>
  
  <p>I tried this:</p>
  
  <pre><code>    $pattern = "/background-image: ?.png/";
      preg_match($pattern, $string, $matches);
  </code></pre>
  
  <p>But this didnt work out.</p>
  
  <p>Any help appreciated..</p>