Replace all that you don't find
- Sean O'Shea
- Feb 3, 2018
- 1 min read
In NotePad++ you can run a RegEx search for:
^(?!p\w+).*\r?\n?

. . . to remove all lines of text except those which begin with the letter 'P'.

Thanks to hwnd for posting this solution here.