• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/js1_2/regexp/

Lines Matching refs:match

41     // 'abcde'.match(new RegExp('ab[ercst]de'))
42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab[ercst]de'))",
43 String(["abcde"]), String('abcde'.match(new RegExp('ab[ercst]de'))));
45 // 'abcde'.match(new RegExp('ab[erst]de'))
46 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab[erst]de'))",
47 null, 'abcde'.match(new RegExp('ab[erst]de')));
49 // 'abcdefghijkl'.match(new RegExp('[d-h]+'))
50 testcases[count++] = new TestCase ( SECTION, "'abcdefghijkl'.match(new RegExp('[d-h]+'))",
51 String(["defgh"]), String('abcdefghijkl'.match(new RegExp('[d-h]+'))));
53 // 'abc6defghijkl'.match(new RegExp('[1234567].{2}'))
54 testcases[count++] = new TestCase ( SECTION, "'abc6defghijkl'.match(new RegExp('[1234567].{2}'))",
55 String(["6de"]), String('abc6defghijkl'.match(new RegExp('[1234567].{2}'))));
57 // '\n\n\abc324234\n'.match(new RegExp('[a-c\d]+'))
58 testcases[count++] = new TestCase ( SECTION, "'\n\n\abc324234\n'.match(new RegExp('[a-c\\d]+'))",
59 String(["abc324234"]), String('\n\n\abc324234\n'.match(new RegExp('[a-c\\d]+'))));
61 // 'abc'.match(new RegExp('ab[.]?c'))
62 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('ab[.]?c'))",
63 String(["abc"]), String('abc'.match(new RegExp('ab[.]?c'))));
65 // 'abc'.match(new RegExp('a[b]c'))
66 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('a[b]c'))",
67 String(["abc"]), String('abc'.match(new RegExp('a[b]c'))));
69 // 'a1b b2c c3d def f4g'.match(new RegExp('[a-z][^1-9][a-z]'))
70 testcases[count++] = new TestCase ( SECTION, "'a1b b2c c3d def f4g'.match(new RegExp('[a-z][^1-9][a-z]'))",
71 String(["def"]), String('a1b b2c c3d def f4g'.match(new RegExp('[a-z][^1-9][a-z]'))));
73 // '123*&$abc'.match(new RegExp('[*&$]{3}'))
74 testcases[count++] = new TestCase ( SECTION, "'123*&$abc'.match(new RegExp('[*&$]{3}'))",
75 String(["*&$"]), String('123*&$abc'.match(new RegExp('[*&$]{3}'))));
77 // 'abc'.match(new RegExp('a[^1-9]c'))
78 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('a[^1-9]c'))",
79 String(["abc"]), String('abc'.match(new RegExp('a[^1-9]c'))));
81 // 'abc'.match(new RegExp('a[^b]c'))
82 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('a[^b]c'))",
83 null, 'abc'.match(new RegExp('a[^b]c')));
85 // 'abc#$%def%&*@ghi)(*&'.match(new RegExp('[^a-z]{4}'))
86 testcases[count++] = new TestCase ( SECTION, "'abc#$%def%&*@ghi)(*&'.match(new RegExp('[^a-z]{4}'))",
87 String(["%&*@"]), String('abc#$%def%&*@ghi)(*&'.match(new RegExp('[^a-z]{4}'))));
89 // 'abc#$%def%&*@ghi)(*&'.match(/[^a-z]{4}/)
90 testcases[count++] = new TestCase ( SECTION, "'abc#$%def%&*@ghi)(*&'.match(/[^a-z]{4}/)",
91 String(["%&*@"]), String('abc#$%def%&*@ghi)(*&'.match(/[^a-z]{4}/)));