I\'m attempting to find a specific string in a document which potentially can have the text split by other tags (i.e. "< p > This is an < span > example < /s
Use padolsey's findAndReplaceDOMText tool and pass it the replace option so that it returns the node you're looking for.
replace