Match data using wildcard hashtable item search? - 15/04/20 06:07 PM
Hi. Is it possible to $hfind table items containing a wildcard and matching the data, or do you have to $hfind match the data, then loop through the list to check if the table item is correct?
For example, say I have the following table:
And I want to find all the hashes where *.startedby = adam. Logically something like `if some.item.*.startedby = adam, then add item to list`. The resulting like would be:
As far as I can tell, it's only possible to search *all* table items for a data match but not search wildcard-matched items for a data match.
Thanks for the help guys!
For example, say I have the following table:
Code
some.item.HASH1.startedby adam some.item.HASH1.finishedby brian some.item.HASH2.startedby charlie some.item.HASH2.finishedby adam some.item.HASH3.startedby adam some.item.HASH3.finishedby adam
And I want to find all the hashes where *.startedby = adam. Logically something like `if some.item.*.startedby = adam, then add item to list`. The resulting like would be:
Code
some.item.HASH1.startedby some.item.HASH3.startedby
As far as I can tell, it's only possible to search *all* table items for a data match but not search wildcard-matched items for a data match.
Thanks for the help guys!