From: Serg Koren Date: 2008-02-12T05:47:49+09:00 Subject: Partial index hash search? What's the best way to find all occurances of a string in a hash's index? That is, x = { 'Hello' => 1, 'Goodbye' => 2, 'Hello there' => 3} How do I most efficiently get 1 and 3 to return on a search for 'Hello' in the index of the hash? I know I can iterate over the index, but is there a better way? Thanks.