title: How to remove all rows from a table except first two and last?
body: <p>I've seen a lot of questions about how to select all but the first and last rows of a table, but I want to know how to select everything except the first TWO rows and the last. Right now I have this to select all but the first two:</p>
  
  <pre><code>$("#sometable").find("tr:gt(1)").remove();
  </code></pre>
  
  <p>and I need some way to get the last one as well. Maybe some way to combine with</p>
  
  <pre><code>:not(:last)
  </code></pre>
  
  <p>?</p>
  
  <p>I'm fairly new to jQuery and any help would be appreciated. </p>