title: JSoup Select Problems
body: <p>I'm having trouble selecting links in my html. Here's the html I have:</p>
  
  <pre><code>&lt;div class=first&gt;
      &lt;a href=www.test1.com&gt;test1&lt;/a&gt;
  
      &lt;div class=nope&gt;
          &lt;a href=www.test2.com&gt;test2&lt;/a&gt;
          &lt;a href=www.test3.com&gt;test3&lt;/a&gt;
          &lt;a href=www.test4.com&gt;test4&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I want to do is pull the URLs:
  <br>www.test2.com
  <br>www.test3.com
  <br>www.test4.com</p>
  
  <p>I have tried a lot of diferent .select and .not combinations but I just can't figure it out. Can anyone point out what it is I'm doing wrong?</p>
  
  <pre><code>String url = "&lt;div class=first&gt;&lt;a href=www.test1.com&gt;test1&lt;/a&gt;One&lt;div class=nope&gt;&lt;a href=www.test2.com&gt;test2&lt;/a&gt;Two&lt;/div&gt;&lt;/div&gt;&lt;div class=second&gt;&lt;a href=www.test3.com&gt;test3&lt;/a&gt;&lt;/div&gt;";
  Document doc = Jsoup.parse(url);
  Elements divs = doc.select("div a[href]").not(".first.nope a[href]"); 
  System.out.println(divs);
  </code></pre>