A function to match (with regular expressions) and replace DOM text. Deals with nodes individually and works with cross-element-boundary matches!