jEdit
If you are looking for an alternative to the free text editor NotePad++, try jEdit, available for download here. It's also free!
jEdit is quite different than NotePad++ and has many unique features. You can use a built-in macro to copy lines which only contain a particular string.