I have an an arbitrary XML string, that also has \[code\]<b>, <i>\[/code\] tags that have the usual meaning.I need to perform string replacement in the plain text only. Nothing in the node definitions should be replaced.For example, I want to replace "hello" with a *.XML like \[code\]<hello a="hello">text sayh<b>ell</b>o more text</hello>\[/code\] should become \[code\]<hello a="hello">text say* more text</hello>\[/code\]What is the best way to do this?I was going to use \[code\]regex\[/code\] only, but the question was voted down.