How to filter out specific lines/rows of text in a clipboard?

I don't know if this is what you had in mind, or if it will work for you, but here is one solution using Dictionaries (KM Wiki)

MACRO: Create Dictionary from Lines of Text [Example]

Please let us know if this works for you and if you have any questions.