title: Remove all text except the RegEx pattern (ABC|123|XYZ)(\w+) in Notepad++
body: <p>Multiple instances of the pattern that I am searching is exactly found by the following RegEx pattern: <code>(ABC|123|XYZ)(\w+)</code></p>
  
  <p>Using Notepad++ search and replace, I would like to delete everything else but these found pattern instances (separated by a newline), preferably in one run.</p>
  
  <p>Is it possible?</p>
  
  <p>Your kind help would be appreciated.</p>