I am trying to replace a newline >, but I cannot determine part of the regular expression.
I want:
"<StartTag>"
To replace with:
"<StartTag>\n"
but NOT:
"</EndTag>\n"
When I use tags_string.Replace(">", "\n"), it replaces both.
Can someone help with Regex, so I can use Regex.Replace()instead to handle the EndTag case?
Annie source
share