Hmm I don't understand why a regex is needed here.. couldn't you instead just replace all the text in the node?