How might I remove characters from a string? For example: "My name @is ,Wan.;'; Wan".
"My name @is ,Wan.;'; Wan"
I would like to remove the characters '@', ',', '.', ';', '\'' from that string so that it becomes "My name is Wan Wan"
'@', ',', '.', ';', '\''
"My name is Wan Wan"
string x = "My name @is ,Wan.;'; Wan"; string modifiedString = x.Replace("@", "").Replace(",", "").Replace(".", "").Replace(";", "").Replace("'", "");