Are you saying there could be any list of PDF files/PNG files/etc.? I wasn't paying attention before that this is from the Outlook VBO. If that's the case, you could do some RegEx here, but maybe the easiest way is to use the Utility - Strings object's action "Split Text" with "|" as the delimiter and then loop over the collection and remove rows that do not end in PDF, PNG, etc. or whatever files you want to keep vs not keep.
I keep editing this message because I realized I read over your messages too quickly. I'm distracted hahaha.
------------------------------
Dave Morris
3Ci at Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company