title: Regex to strip \r and \n or \r\n
body: <p>I use the following regex to make newlines <br> tags:</p>
  
  <pre><code>str.gsub("\r\n", '&lt;br&gt;')
  </code></pre>
  
  <p>This works fine on a desktop. on an iphone text only has \n, it doesn't have the \r.</p>
  
  <p>How can I make the regex support either? \r\n or just \n ?</p>
  
  <p>Thanks</p>