Lines Matching defs:re
31 var re = /x/g;
33 assertEquals(0, re.lastIndex, "Global, initial lastIndex");
35 assertTrue(re.test("x"), "Global, test 1");
36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1");
37 assertFalse(re.test("x"), "Global, test 2");
38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2");
40 assertEquals(["x"], re.exec("x"), "Global, exec 1");
41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1");
42 assertEquals(null, re.exec("x"), "Global, exec 2");
43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2");