title: python replace all special characters and spaces with single '-'
body: <p>I am trying to replace all the special characters and spaces in the string with only single '-'</p>
  
  <p>For example:</p>
  
  <p>Input: <code>"Games &amp; Fun"</code></p>
  
  <p>Output: <code>"Games-Fun"</code></p>
  
  <p>I tried </p>
  
  <pre><code>&gt;&gt;&gt; re.sub('[&amp;" "]', '-', "Games &amp; Fun")
  'Games---Fun'
  </code></pre>
  
  <p>But I want <code>"Games-Fun"</code> only.</p>
  
  <p>Can anyone help me with this?</p>