title: newline matching regex - is /[\r\n]/ the same as /[\n]/?
body: <p>As far as matching a newline in a string - is <code>/[\r\n]/</code> the same as <code>/[\n]/</code> ?</p>
  
  <p>I was reading this blog post:
  <a href="https://davidwalsh.name/remove-multiple-new-lines" rel="nofollow noreferrer">https://davidwalsh.name/remove-multiple-new-lines</a></p>
  
  <p>and it says to use <code>/[\r\n]/</code>, but I am simply wondering if that always matches the same as <code>/[\n]/</code>, or if they are sort of a  venn diagram where each might match something different.</p>