Re: [SR-Users] Partial/regex match on hash table key?

2018-01-31 Thread Anthony Joseph Messina
Ok, thank you Dmitri. I'll need to use iteration then, which is ok too. I have a set of known contacts in Horde Groupware (https://www.horde.org/) that I would like to set the identity for when the callerid number matches. That way when someone calls, instead of getting "WIRELESS CALLER" for

Re: [SR-Users] Partial/regex match on hash table key?

2018-01-31 Thread Dmitri Savolainen
Hi, Anthony Masks are not possible for getting values. But sometimes "array" approach may be usefull $var(i) = 0; $var(cache_mask) = "slice_a"; $var(cache_size) = $sht(mycache=>$var(cache_mask)::size); while( $var(i) < $var(cache_size) ){ # do smth with

[SR-Users] Partial/regex match on hash table key?

2018-01-31 Thread Anthony Joseph Messina
Is is possible (without iterating through all entries in a hash table) to return the value based on a partial or regex match to the key? Something like... $var(one)=$sht(a=>*$var(two)) -- Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery F9B6 560E 68EA 037D 8C3D D1C9