title: Notepad++ macro to remove lines within specific range
body: <p>I have a file with some raw data like this:</p>
  
  <pre><code>RMR,IV,0000771702159,PO,189.63,193.5,3.87
  REF,DP,00081
  REF,MC,543908537
  REF,19,27
  REF,ST,0078742064345
  DTM,097,20170130
  RMR,IV,0000771702454,PO,202.5,202.5
  REF,DP,00064
  REF,MR,0020
  REF,PO,5654748341
  REF,MC,936705865
  REF,19,18
  REF,ST,0605388000255
  DTM,097,20170302
  RMR,IV,0000771702644,PO,36.26,37,0.74
  REF,DP,00090
  REF,MC,505304198
  REF,19,26
  REF,ST,0078742076270
  DTM,097,20170322
  RMR,IV,0000771702645,PO,107.31,109.5,2.19
  REF,DP,00081
  REF,MC,505303606
  REF,19,27
  REF,ST,0078742076270
  DTM,097,20170322
  </code></pre>
  
  <p>What I am looking to do is remove any "block" of data that contains the line "REF,DP,00064" within the block
  Each block of text begins with a line that starts with RMR and ends with a line that begins with DTM</p>
  
  <p>So I would like to end up removing the section between the lines below:</p>
  
  <pre><code>RMR,IV,0000771702159,PO,189.63,193.5,3.87
  REF,DP,00081
  REF,MC,543908537
  REF,19,27
  REF,ST,0078742064345
  DTM,097,20170130
  -----------------------------------------
  RMR,IV,0000771702454,PO,202.5,202.5
  REF,DP,00064
  REF,MR,0020
  REF,PO,5654748341
  REF,MC,936705865
  REF,19,18
  REF,ST,0605388000255
  DTM,097,20170302
  -----------------------------------------
  RMR,IV,0000771702644,PO,36.26,37,0.74
  REF,DP,00090
  REF,MC,505304198
  REF,19,26
  REF,ST,0078742076270
  DTM,097,20170322
  RMR,IV,0000771702645,PO,107.31,109.5,2.19
  REF,DP,00081
  REF,MC,505303606
  REF,19,27
  REF,ST,0078742076270
  DTM,097,20170322
  </code></pre>
  
  <p>And final result should be:</p>
  
  <pre><code>RMR,IV,0000771702159,PO,189.63,193.5,3.87
  REF,DP,00081
  REF,MC,543908537
  REF,19,27
  REF,ST,0078742064345
  DTM,097,20170130
  RMR,IV,0000771702644,PO,36.26,37,0.74
  REF,DP,00090
  REF,MC,505304198
  REF,19,26
  REF,ST,0078742076270
  DTM,097,20170322
  RMR,IV,0000771702645,PO,107.31,109.5,2.19
  REF,DP,00081
  REF,MC,505303606
  REF,19,27
  REF,ST,0078742076270
  DTM,097,20170322
  </code></pre>
  
  <p>Ive searched and found how to remove if what im searching for is at the beginning but in  my case its in the middle</p>
  
  <p>Any help is appreciated.</p>