I am aware of the jQuery regex plugin from James Padolsey: http://james.padolsey.com/javascript/regex-selector-for-jquery/
But I need something else:
- The regular expression should look in all visible text of the web page.
- I want to get the text myself, and not the element containing it.
The following will meet requirement 1, but not 2:
$('*').filter(function() { return this.text().match(/\d\d\d/); });
Any idea how I can do this with good performance?
source share