title: jQuery .search() to any string
body: <p>I saw this code snippet:</p>
  
  <pre><code>$("ul li").text().search(new RegExp("sometext", "i"));
  </code></pre>
  
  <p>and wanted to know if this can be extended to any string?</p>
  
  <p>I want to accomplish the following, but it dosen't work:</p>
  
  <pre><code>$("li").attr("title").search(new RegExp("sometext", "i"));
  </code></pre>
  
  <p>Also, anyone have a link to the jQuery documentation for this function? I fail at googling apparently. </p>