title: What is the difference between \r\n, \r, and \n?
body: <p>What is difference in a string between <code>\r\n</code>, <code>\r</code> and <code>\n</code>? How is a string affected by each?</p>
  <p>I have to replace the occurrences of <code>\r\n</code> and <code>\r</code> with <code>\n</code>, but I cannot get how are they different in a string...</p>
  <p>I know that <code>\r</code> is like hitting enter and <code>\n</code> is for a new line.</p>