title: Regex: Matching HTML elements that do not contain specific text
body: <p>I need to strip out any movies that are not hosted by YouTube from html. Originally the request was to strip out any movies at all, for which </p>
  
  <pre><code>&lt;object.*object&gt;
  </code></pre>
  
  <p>worked pretty well. Now I basically need to do the same thing, but only if the stuff in the object tags is not hosted on youtube. I need a regex pattern that will match a string that starts with  but does not contain the word "youtube". There are probably more things I would need to consider if I needed this to work with all possible scenarios, but the above should do the trick for the job at hand.</p>
  
  <p>I've been playing with negative lookaheads but have not yet been able to get it to work. Here are some of the things I have tried:</p>
  
  <p><code>&lt;object.*(?!youtube).*object&gt;</code> - matches all object tags since * is greedy</p>
  
  <pre><code>&lt;object.+?(?!youtube).+?object&gt;
  
  &lt;object(?!youtube)*object&gt;
  </code></pre>
  
  <p>plus plenty of others that just further reinforce that I'm stabbing wildly in the dark at this one.</p>
  
  <p>This is in Java 1.6</p>