TK. TK. - 11 months ago 104
C# Question

C# string manipulation search and replace

I have a string which contain tags in the form

< tag >
. Is there an easy way for me to programmatically replace instances of these tags with special ascii characters? e.g. replace a tag like
"< tab >"
with the ascii equivelent of

Answer Source
string s = "...<tab>...";
s = s.Replace("<tab>", "\t");