I have a file with the content below.
${ dontReplaceMe } ReplaceMe ${dontReplaceMeEither}
I want to match \'Replac
usually it is a bad idea to use regex when there is structured markup involved. in some special cases it might be ok, but there are better tools to parse html and then you can use regex on the text nodes.