have the following problem using regex and $ in a string. Wondring if anyone can assist.
bla in text below is random words.
string text = "<id='$text1$text2$text3'><div>bla bla bla text3 bla bla</div>";
string pattern = "\btext3\b";
text = Regex.Replace(text, pattern, "####");
If i do above, it will replace both text3. I only want to change the value in the div element so the result becomes: <id='$text1$text2$text3'> <div>bla bla bla #### bla bla</div>.
Thanks in advance!
<id='$text1$text2$text3'> <div>bla bla bla priceis2$text3$ bla bla</div>?