title: How to delete lines without String in Notepad++
body: <p>I have various logfiles which I want to filter with a grep-like functionality.</p>
  
  <p>The way I did it before is:</p>
  
  <ul>
  <li>Mark the word / string</li>
  <li>Search/Mark  
  
  <ul>
  <li>enable option "Bookmark line" </li>
  <li>mark all </li>
  <li>close</li>
  </ul></li>
  <li>Search/Bookmark 
  
  <ul>
  <li>"Remove Unmarked lines"</li>
  </ul></li>
  </ul>
  
  <p>For this procedure I recorded a macro and stored it in <code>shortcuts.xml</code>:</p>
  
  <pre><code>&lt;Macros&gt;
          &lt;Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83"&gt;
              &lt;Action type="2" message="0" wParam="42024" lParam="0" sParam="" /&gt;
              &lt;Action type="2" message="0" wParam="41006" lParam="0" sParam="" /&gt;
          &lt;/Macro&gt;
          &lt;Macro name="grep01" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
              &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
              &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="IM1 001" /&gt;
              &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
              &lt;Action type="3" message="1702" wParam="0" lParam="784" sParam="" /&gt;
              &lt;Action type="3" message="1701" wParam="0" lParam="1615" sParam="" /&gt;
              &lt;Action type="2" message="0" wParam="43051" lParam="0" sParam="" /&gt;
          &lt;/Macro&gt;
  </code></pre>
  
  <p>Is it possible to replace the string <code>"IM1 001"</code> with a wildcard, or the actual marked text and then just press a combination to do the job?</p>