How to filter more than one file extension of the save email attachment

@laikafai84

have a look here:

Instead of count e.g. return the filtered list with:

Messages(0).Attachments.Where(Function (x) Regex.IsMatch(Path.GetExtension(x.Name).ToUpper,Pattern)).toList