title: Count special characters in a string
body: <p>i have the following piece of code to count number of special characters in a string...somehow it does not return what i'd like</p>
  
  <pre><code>var sectionToCheck  = $('input').val(); //it could be any kind of string entered in an input field such as "Hello @&amp;% everybody"
  var specialChars = /^[!@#$%^&amp;*()_+\-=\[\]{};':"\\|,.&lt;&gt;\/?]*$/;
  var allFoundCharacters = sectionToCheck.match(specialChars);
  console.log(allFoundCharacters);
  </code></pre>
  
  <p>It returns a null value for the variable allFoundCharacters. Any tips please? </p>