title: Plain text selector in jQuery
body: <p>I'd like to keep the first <code>&lt;a&gt;</code> and the <code>&lt;span&gt;</code>, but remove the rest in the following:</p>
  
  <pre><code>&lt;div&gt;
      &lt;a href="http://aerospace.com"&gt;Aerospace&lt;/a&gt; and 
      &lt;a href="http://aviation.com"&gt;Aviation&lt;/a&gt;
      &lt;span class="blah"&gt;(15)&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I'm finding is that there doesn't seem to be an obvious of matching the plain text <code>and</code>. I'm trying to use nextAll() with a filter:</p>
  
  <pre><code>$("a:contains('Aerospace')").each(function() {
      $(this).nextAll().filter(":not(span)").empty();
  });
  </code></pre>
  
  <p>But the <code>and</code> text is left there.</p>
  
  <p>Is it possible to match text in jQuery? Is there such a thing as a text selector so I could use something like <code>filter (":isText()")</code>?</p>