find all the text nodes that match a criteria