I want to replace the textarea value with something else, using C# regex. Right now I have this:
Regex regex = new Regex("<textarea.*>(.*)</textarea>");
string s = "<textarea>test</textarea>";
string a = regex.Replace(s, "abc");
Except this prints abc
instead of <textarea>abc</textarea>
. I want to make it as dynamic as possible,
So something like this
<textarea rows="20" class="style">test</textarea>
Should become
<textarea rows="20" class="style">abc</textarea>
Thanks!