title: Select elements based on part of a background url
body: <p>I'm trying to select all elements that have a background image that contains specific text. For example, the element could have this style:</p>
  
  <pre><code>background-image: url(http://images.myServer.com/4536);
  </code></pre>
  
  <p>I want to find all elements whose background image urls contain "myServer".</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/3249881/jquery-select-element-based-on-background-image-name">responses</a> that match the url exactly, like:</p>
  
  <pre><code>if ( $(this).css('background-image') === 'http://images.myServer.com/4536' )
  </code></pre>
  
  <p>but nothing that finds a partial match. </p>