Fix caching regex