title: Add special characters to alphanumeric regex
body: <p>Brand new to using Regular Expressions. I have one that currently accepts alphanumeric characters only. I need to add the following special characters to the regex: </p>
  
  <pre><code>@ #$%*():;"',/? !+=-_ 
  </code></pre>
  
  <p>Here is the regular expression: </p>
  
  <pre><code>RegularExpression(@"^[a-zA-Z\s.,0-9-]{1,30}$",
  </code></pre>
  
  <p>When I try to add the special characters, I alter the Regex like so: </p>
  
  <pre><code>RegularExpression(@"^[a-zA-Z\s.,0-9-@ #$%*():;"',/? !+=-_]{1,30}$"
  </code></pre>
  
  <p>However this throws an error starting with the <code>'</code> character that says <code>Newline in constant</code>.</p>
  
  <p>I've tied to escape both the <code>"</code> and the <code>'</code> characters, however without any luck. </p>