Filtering by multiple patterns