Replace all that you don't find


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.