title: Nano insert newline in search and replace
body: <p>Basically, I need to doublespace a part of text. I know I can do it with:</p>
  
  <pre><code>sed G
  </code></pre>
  
  <p>but it would be great if I could do it directly in Nano.  </p>
  
  <p>I tried to search for the end of line (<code>$</code>) and then replace it with things  like <code>\n</code> or <code>[:newline:]</code> but it seems that RegExp is recognized only for search and not for replace -- it always inserts the literal expression.  </p>
  
  <p>However, <a href="https://stackoverflow.com/questions/7745535/regex-based-matching-and-sustitution-with-nano">this question</a> suggests it could be possible. Though I can't figure out how. And yes, I have:</p>
  
  <pre><code>set regexp
  </code></pre>
  
  <p>in my .nanorc</p>