Home | History | Annotate | Download | only in regex

Lines Matching refs:regexp

28 var regexp;
30 regexp = /\ug/gm;
31 debug("\nTesting regexp: " + regexp);
32 shouldBeTrue("regexp.test('ug')");
33 shouldBe("regexp.lastIndex", "2");
35 regexp = /\xg/gm;
36 debug("\nTesting regexp: " + regexp);
37 shouldBeTrue("regexp.test('xg')");
38 shouldBe("regexp.lastIndex", "2");
40 regexp = /\c_/gm;
41 debug("\nTesting regexp: " + regexp);
42 shouldBeTrue("regexp.test('\\\\c_')");
43 shouldBe("regexp.lastIndex", "3");
45 regexp = /[\B]/gm;
46 debug("\nTesting regexp: " + regexp);
47 shouldBeTrue("regexp.test('B')");
48 shouldBe("regexp.lastIndex", "1");
50 regexp = /[\b]/gm;
51 debug("\nTesting regexp: " + regexp);
52 shouldBeTrue("regexp.test('\\b')");
53 shouldBe("regexp.lastIndex", "1");
55 regexp = /\8/gm;
56 debug("\nTesting regexp: " + regexp);
57 shouldBeTrue("regexp.test('\\\\8')");
58 shouldBe("regexp.lastIndex", "2");
60 regexp = /^[\c]$/;
61 debug("\nTesting regexp: " + regexp);
62 shouldBeTrue("regexp.test('c')");
64 regexp = /^[\c_]$/;
65 debug("\nTesting regexp: " + regexp);
66 shouldBeFalse("regexp.test('c')");
68 regexp = /^[\c]]$/;
69 debug("\nTesting regexp: " + regexp);
70 shouldBeTrue("regexp.test('c]')");