title: Regular Expression: 0-9 A-Z a-z or any of these '!#$%&'*+-/=?^_`{|}~
body: <p>I need to regex string myString to only have:</p>
  
  <ul>
  <li>0-9</li>
  <li>A-Z or a-z</li>
  <li>any of these characters '!#$%&amp;'*+-/=?^_`{|}~.</li>
  </ul>
  
  <p>This is my code line:</p>
  
  <pre><code>new Regex("[a-zA-Z0-9]").IsMatch(myString);
  </code></pre>
  
  <p>So far I have <code>[a-zA-Z0-9]</code> and this works fine for the first two listitems.
  Currently tearing my hair out (and it's so nice I want to keep it) over metacharacters and getting nowhere.</p>
  
  <p>Any help would be greatly appreciated.
  Thanks.
  Dave</p>