title: Regex for only changing expression between sth in R
body: <p>I have some general sentence,</p>
  
  <pre><code>\r\n sth ~ sth\r\nsth ~ sth ~ \r\n
  </code></pre>
  
  <p>What I want to do is just make \r\n to nothing like ""</p>
  
  <p>So the result is </p>
  
  <pre><code>\r\n sth ~ sthsth ~ sth ~ \r\n
  </code></pre>
  
  <p>If I use regex</p>
  
  <pre><code>gsub("\\S\r\n\\S","\\S\\S",string)
  </code></pre>
  
  <p>Then the result is ( the example is rolling\r\nstones )</p>
  
  <pre><code>\r\n sth ~ rollinSStones ~ sth ~ \r\n
  </code></pre>
  
  <p>Is there any method to leave the string : </p>
  
  <pre><code>\r\n sth ~ rollingstones ~ sth ~ \r\n
  </code></pre>
  
  <p>I need a general solution to leave the other \r\n just \r\n</p>
  
  <p>Thank you for reading.</p>