alert(/[abc]/.test("c")); //true alert("a bat ,a Cat,a fAt bat ,a faT cat".match(/[bcf]at/gi)); //bat,Cat,fAt,bat,faT,catreg.test(str)str.match(reg)