title: Remove a list of special characters from string in C#
body: <p>I need to replace a string with specific list of special characters to string.Empty.</p>
  
  <p>Example: 123 ~Main To 123 Main</p>
  
  <p>List of Special character :  + - &amp;&amp; || ! ( ) { } [ ] ^ " ~ * ? : \</p>
  
  <p>I know that we can do like this below, can we have better way, using some Regular expressions.</p>
  
  <pre><code>&gt; keyword = keyword.Replace("+", string.Empty);
  &gt;         keyword = keyword.Replace("&amp;&amp;", string.Empty);
  &gt;         keyword = keyword.Replace("||", string.Empty);
  &gt;         keyword = keyword.Replace("!", string.Empty);
  &gt;         keyword = keyword.Replace("(", string.Empty);
  &gt;         keyword = keyword.Replace(")", string.Empty);
  &gt;         keyword = keyword.Replace("{", string.Empty);
  &gt;         keyword = keyword.Replace("}", string.Empty);
  &gt;         keyword = keyword.Replace("[", string.Empty);
  &gt;         keyword = keyword.Replace("]", string.Empty);
  &gt;         keyword = keyword.Replace("^", string.Empty);
  &gt;         keyword = keyword.Replace("~", string.Empty);
  &gt;         keyword = keyword.Replace("*", string.Empty);
  &gt;         keyword = keyword.Replace("?", string.Empty);
  &gt;         keyword = keyword.Replace(":", string.Empty);
  &gt;         keyword = keyword.Replace("\\", string.Empty);
  &gt;         keyword = keyword.Replace("\"", string.Empty);
  </code></pre>
  
  <p>Thanks in advance.</p>