title: python regex to replace all windows newlines with spaces
body: <p>I did this:</p>
  
  <pre><code>from urllib import urlopen
  import nltk
  url = http://myurl.com
  html = urlopen(url).read()
  cleanhtml = nltk.clean_html(html)
  </code></pre>
  
  <p>I now have a long string in python which is full of text interrupted periodically by windows newlines <code>/r/n</code>, and I simply want to remove all of the occurrences of /r/n from the string using a regular expression. First I want to replace it with a space. As such, I did this:</p>
  
  <pre><code>import re
  textspaced = re.sub("'\r\n'", r"' '", cleanhtml)
  </code></pre>
  
  <p>...it didn't work. So what am I doing wrong?</p>