Try wrapping your text string in a CDATA section.
A Regular Expression is a formal description of a template to be matched against a text string.