title: notepad++ deleting all text except what matches regex
body: <p>I have a text file with information about a recording, including track numbers and names, and I want to delete all the other text except the track number and track names.  For example the text file looks like this:</p>
  
  <pre><code>text text text text
  text text text text text text text text
  text text text text text text text text text text text text
  text text text text
  text text text text text text text text
  text text text text 
  text text text text text text text text text text text text text text text text 
  text text text text text text text text 
  text text text text 
  
  d1t01 - trackname
  
  d1t02 - trackname
  
  d1t03 - trackname
  
  d1t04 - trackname
  
  d1t05 - trackname
  
  d1t06 - trackname
  
  d1t07 - trackname
  
  d1t08 - trackname
  
  d1t09 - trackname
  
  d1t10 - trackname
  
  d1t11 - trackname
  
  text text text text
  text text text text text text text text
  text text text text text text text text text text text text
  text text text text
  text text text text text text text text
  text text text text 
  text text text text text text text text text text text text text text text text 
  text text text text text text text text 
  text text text text 
  </code></pre>
  
  <p>I want to be left with just this:</p>
  
  <pre><code>d1t01 - trackname
  
  d1t02 - trackname
  
  d1t03 - trackname
  
  d1t04 - trackname
  
  d1t05 - trackname
  
  d1t06 - trackname
  
  d1t07 - trackname
  
  d1t08 - trackname
  
  d1t09 - trackname
  
  d1t10 - trackname
  
  d1t11 - trackname
  </code></pre>
  
  <p>I figured out how to match the beginning of the line with this regex: </p>
  
  <pre><code>d[0-9]+t[0-9]+[0-9]+ -
  </code></pre>
  
  <p>But I can't figure out how to delete the rest of the "text" and only leave those lines.  I also need it to delete the "returns" and not be left with any blank lines in the text file.</p>
  
  <p>Thank you!</p>