use regex_cache to store filters.