title: Copy a line in the row directly above with Notepad++
body: <p>I have a large XML file and I need to copy a line in the row directly above with Notepad++ and RegEx (if it is possible, of course).</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;text&gt;&lt;/text&gt;
  &lt;reference&gt;Lorem ipsum dolor sit amet...&lt;/reference&gt;
  </code></pre>
  
  <p>With a Regex I need to copy the content of "reference" line and paste above in the "text" line.</p>
  
  <p>So this is the final result:</p>
  
  <pre><code>&lt;text&gt;Lorem ipsum dolor sit amet...&lt;/text&gt;
  &lt;reference&gt;Lorem ipsum dolor sit amet...&lt;/reference&gt;
  </code></pre>
  
  <p>Someone knows a simple solution for this problem?</p>
  
  <p>Thanks to all in advance =)</p>