[jQuery] Selecting text nodes

[jQuery] Selecting text nodes


Does anyone have code for a text node selector? I saw this post:
http://groups.google.com/group/jquery-en/browse_thread/thread/2dda27130338f1af/b04adcf147e15ab1
but the function textNodes didn't seem to work with the current
version of jQuery. I'm a bit new to jQuery, but I ultimately want to
do a regex find and replace on all of the text nodes in a tree (the
function needs to select children, grandchildren, etc), so any tips on
the best way to do that would be greatly appreciated.
Many thanks,
Tom