attachments = [x for x in message_dict['attachments']
                       if regex.match(x[0])]