[filter] Extract lines based on filter, not marks