title: need regex for form validation to avoid multiple special characters
body: <p>I need jquery or javascript regex to validate form text box so that if any one will enter multiple times same special characters an alert will be generated.</p>
  
  <p>For example
  how are you??
  or
  how are you....
  or 
  how are you@@??</p>
  
  <p>Please note that I need to block "multiple" use of special characters I don't want to block single special character. If one need to send "hello how are you?" it should be proceed.</p>
  
  <p>Thank you,</p>
  
  <p><strong>[Update]</strong>
  I got the final result</p>
  
  <p>To validate form text box for all special characters we can use </p>
  
  <pre><code>/(?! )(\W)\1+/
  </code></pre>
  
  <p>To validate some special characters we can use</p>
  
  <pre><code>/([@#$%])\1+/;
  </code></pre>
  
  <p>Add or remove special characters inside <strong>[ ]</strong></p>