title: Check for special characters in string
body: <p>I want to check if a string contains special characters like !@#$%^&amp;*.,&lt;>/\'";:? and return true if the string contains atleast one of those chars.</p>
  
  <p>I tried with the following regex,script:</p>
  
  <pre><code>var format = /^[!@#$%^&amp;*()_+\-=\[\]{};':"\\|,.&lt;&gt;\/?]*$/;
  
  if( string.match(format) ){
    return true;
  }else{
    return false;
  }
  </code></pre>
  
  <p>If the string contains only the special characters then it returns true , but if the string contains something else like alphanumeric chars ( !example1 , .example2 ) it returns false.</p>