Programming Toolkit

Lessons Learned
 
Books
 
Sites
 
Messages
 
About
 
 
 

 
Saturday, 04 September 2010
User-Posted Messages
Post a New Message

Browse threads by subject Search threads by topic

Hashing Regular Expressions
Posted 19:52, 28 October, 2003 by mjw
I am looking to store objects in a hash table where the key may be a regular expression. To retrieve stored objects, I can test potential keys to see if they match the regular expression, but then I lose the speed inherent in the hash table. Is there any way to do a get using, e.g., ABCD which would retrieve the object stored under AB[A-Z]D?
Respond