In my code i am trying to replace <Run Foreground="#FFFF0000"> with <Run Foreground="#FFFF0000" Text="
right now i am using this
Regex.Replace(XMLString, @"<Run.*?>", "<Run Text=\"", RegexOptions.IgnoreCase);
which replaces <Run Foreground="#FFFF0000">
with <Run Text="
I just want to replace > with text = " whenever i encounter <Run
.
How can i archive this ?