title: Replace repeating characters with one with a regex
body: <p>I need a regex script to remove double repetition for these particular words..If these character occurs replace it with single.</p>
  
  <pre><code>/[\s.'-,{2,0}]
  </code></pre>
  
  <p>These are character that if they comes I need to replace it with single same character.</p>