title: Regex Pattern - Allow alpha numeric, a bunch of special chars, but not a certain sequence of chars
body: <p>I have the following regex:</p>
  
  <pre><code>(?!^[&amp;#]*$)^([A-Za-z0-9-'.,&amp;@:?!()$#/\\]*)$
  </code></pre>
  
  <p>So allow A-Z, a-Z, 0-9, and these special chars <code>'.,&amp;@:?!()$#/\</code></p>
  
  <p>I want to NOT match if the following set of chars is encountered anywhere in the string in this order:</p>
  
  <pre><code>&amp;#
  </code></pre>
  
  <p>When I run this regex with just "&amp;#" as input, it does not match my pattern, I get an error, great. When I run the regex with <code>'.,&amp;@:?!()$#/\ABC123</code> It does match my pattern, no errors.</p>
  
  <p>However when I run it with:</p>
  
  <pre><code>'.,&amp;#@:?!()$#/\ABC123
  </code></pre>
  
  <p>It does not error either. I'm doing something wrong with the check for the &amp;# sequence.</p>
  
  <p>Can someone tell me what I've done wrong, I'm not great with these things.</p>