title: how to replace the characters in strings with '#'s by using regex in Python
body: <p>How can I replace the contents of strings with <code>#</code>'s in Python? Assume no comments, no multiple lines for one string. Like if there is a line in a python file:</p>
  
  <pre><code>print 'Hello' + "her mom's shirt".
  </code></pre>
  
  <p>This will be translated into:</p>
  
  <pre><code>print '#####' + "###############".
  </code></pre>
  
  <p>It's like a filter to deal with every line in a python file.</p>