TK. TK. - 9 months ago 95
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
'/t'
?

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