Filter is now a regexp pattern and exported a separate list function