I\'m trying to figure out if there\'s a reasonably efficient way to perform a lookup in a dictionary (or a hash, or a map, or whatever your favorite language calls it) where the
The fundamental assumption is flawed, I think. you can't map hashes to regular expressions.