title: cannot remove /n and /n/n from text file
body: <p>I have a file containing some string like below:
  <a href="https://i.stack.imgur.com/acW0f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/acW0f.png" alt="enter image description here"></a></p>
  
  <p>Now, I want to get rid of all <code>/n</code>, and <code>/n/n</code>. Here is the code that I have written, but it does not work! Can some one please tell me what is wrong with this code? Also, I want to keep real new lines, because later I want to be able to read each line and process something on it.</p>
  
  <pre><code>lin=read_file.read()
  print(line.strip().strip("").strip('\n').strip('\t').replace(r"\n\n","_").replace('\r\n', ' '));
  </code></pre>