title: Matching multiple occurrences of consecutive characters from a set
body: <p>I am trying to match 3 or more consecutive occurrences of one/more special characters from  a set in a string.</p>
  
  <pre><code>my js:
  var exp = new RegExp("^[\^\$\*%#`!]{3}+$"); 
  return !exp.test(myString);
  </code></pre>
  
  <p>Not working. Any help will be appreciated.</p>
  
  <pre><code>this i$ a te$t: false
  th!$ a te$t: false
  
  th!s is a ^%* test: true 
  as it has 3 consecutive characters from my set '^%*'
  
  this is a ^%^&amp;%&amp;%&amp; test: true
  as it has 3 or more consecutive characters from my set
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I corrected the regex. <strong>This in JavaScript</strong></p>
  
  <pre><code>var exp = new RegExp("[\^$%#`]{3}"); return exp.test(myString);
  </code></pre>
  
  <p><strong>Why it is saying this is a match?
  %^ $^ $^ $^ &amp;^ &amp;^ &amp; %</strong></p>
  
  <p>This input has 2 characters at most and has space in between.</p>