hehehe i was reading this thinking the figures dont add up seeing as you prooved regex hfind is not slow (atleast not as slow as 60 seconds on 3000 items) i wont anymore :tongue:
First thing i noticed noone asked how the OP was using the regex find in his loop.
Hmm, the 60 seconds are possibly because it is part of a loop.
Basicly it takes a piece of text, and searches the hash table.
In total it searches for like 300 items in that loop.
But still, with the original code, it takes like 5 seconds. The only problem is that it matches wildmatch stuff, on several tokens. So I get wrong results.
which should be the reason for the large execution time.