title: Ruby regexp for replace some sequence
body: <p>How I can convert string -</p>
  
  <pre><code>text = "test test1 \n \n \n \n \n \n \n \n \n \n \n \n \n \n test2 \n"
  </code></pre>
  
  <p>to </p>
  
  <pre><code>test test1 \n\n\n\n\n\n\n\n\n\n\n\n\n\n test2\n
  </code></pre>
  
  <p>I tried use next - <code>text.gsub(/\s\n/, '\n')</code>, but it added additional slash - </p>
  
  <pre><code>test test1\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n test2\\n
  </code></pre>