Create matching rules against the contents of a hash