title: What is the difference between \r and \n?
body: <p>How are <code>\r</code> and <code>\n</code> different? I think it has something to do with Unix vs. Windows vs. Mac, but I'm not sure exactly how they're different, and which to search for/match in regexes.</p>