Cache name matching regex