TK. TK. - 1 year ago 120
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");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download