patch for regular expression intersection caching