I have this string
string s = "<textarea>\r\n</textarea>";
And I want to replace the textarea content dynamically, trying it like this:
Regex regex = new Regex("(<textarea.*?>)(.*)(</textarea>)");
string a = regex.Replace(s, "$1new value$3");
Yet this does not procedure the output I want, which should be: <textarea>new value</textarea>
. It just produces
<textarea>
</textarea>
How can I fix it?