Lines Matching defs:reg
120 var reg = /(\d\d )/g;
122 shouldBe("reg.exec(str).toString()","'98 ,98 '");
123 shouldBe("reg.lastIndex","3");
127 shouldBe("reg.exec(str).toString()","'76 ,76 '");
128 shouldBe("reg.lastIndex","6");
132 shouldBe("reg.exec(str)","null");
133 shouldBe("reg.lastIndex","0");
143 reg = /^u/i;
144 shouldBeTrue("reg.ignoreCase == true");
145 shouldBeTrue("reg.global === false");
146 shouldBeTrue("reg.multiline === false");
147 shouldBeTrue("reg.test('UGO')");
150 shouldBe("reg.x = 1; reg.x", "1");
152 shouldBe("var r2 = reg; r2.x = 2; reg.x", "2");