title: Jquery extract text with regular expression on complete visible text of web page
body: <p>I am aware of the jQuery regex plugin of James Padolsey: <a href="http://james.padolsey.com/javascript/regex-selector-for-jquery/" rel="noreferrer">http://james.padolsey.com/javascript/regex-selector-for-jquery/</a></p>
  
  <p>But I need something different:</p>
  
  <ol>
  <li>The regular expression should search in the whole visible text of the web page.</li>
  <li>I want to get the text itself, not the element containing them.</li>
  </ol>
  
  <p>The following will match requirement 1, but not 2:</p>
  
  <pre><code>$('*').filter(function() {
      return this.text().match(/\d\d\d/);
  });
  </code></pre>
  
  <p>Any idea how i can do this with a good performance?</p>