var r1 = /(?!(?i:a|b))[c]/.test("C"); if (r1 !== false) throw new Error("case-sensitive [c] matched 'C': " + r1); var r2 = /(?!(?-i:a|b))[c]/i.test("C"); if (r2 !== true) throw new Error("case-insensitive [c] did not match 'C': " + r2); var r3 = /(?