var obj = { qwe_1: 1, qwe_2: 2, qwe_n: "n", rty_45: 45 }; for (var key in obj) { if (key.indexOf("qwe") != -1) { alert(key + ", " + obj[key]); } }