Lines Matching refs:re
41 var re = /foo.bar/;
42 assertEquals("/foo.bar/", "" + re);
46 re.compile("foo.bar");
47 assertEquals(void 0, re.sticky);
54 assertEquals(void 0, re.sticky);
55 re.sticky = true; // Has no effect on the regexp, just sets a property.
56 assertTrue(re.sticky);
58 assertTrue(re.test("..foo.bar"));
60 re.lastIndex = -1; // Ignored for non-global, non-sticky.
61 assertTrue(re.test("..foo.bar"));
62 assertEquals(-1, re.lastIndex);
64 re.lastIndex = -1; // Ignored for non-global, non-sticky.
65 assertTrue(!!re.exec("..foo.bar"));
66 assertEquals(-1, re.lastIndex);