You can use logic:
output = System.Text.RegularExpressions.Regex.Replace(your_String, "[^\w\.@-]","")
or
output = System.Text.RegularExpressions.Regex.Replace(yourString, "[^\w\.@-]"," ")
Or read this post:
Replace (regex) problems
You can use logic:
output = System.Text.RegularExpressions.Regex.Replace(your_String, "[^\w\.@-]","")
or
output = System.Text.RegularExpressions.Regex.Replace(yourString, "[^\w\.@-]"," ")
Or read this post:
Replace (regex) problems