I have the following XML tag
I want to replace the < in the text with <>
<
Most likely you can do this using lookbehind:
/(?
see: http://www.regular-expressions.info/lookaround.html