title: Deleting every 2nd line from a file using Notepad++
body: <p>I am looking for some regex help.</p>
  
  <p>I have a textfile, nothing super important but I would like to delete every second line from it - I have tried following this guide: <a href="https://stackoverflow.com/questions/17735289/delete-every-other-line-in-notepad">Delete every other line in notepad++</a></p>
  
  <p>However I just can't get it to work, is the regex I am using ok? I am noob with regex</p>
  
  <p>Find:</p>
  
  <pre><code>([^\n]*\n)[^\n]*\n
  </code></pre>
  
  <p>Replace with:</p>
  
  <pre><code>$1
  </code></pre>
  
  <p>No matter what I try (mouse position at the beginning, ctrl+a and Replace All) I just can't get it to work.  I appreciate any help.</p>
  
  <p>I've put the regex into here: <a href="http://regexpal.com/" rel="nofollow noreferrer">http://regexpal.com/</a> and if I remove the final \n it highlights the individual rows.</p>