• Home
  • Raw
  • Download

Lines Matching full:exec

27 shouldBe("regex1.exec('xx')", "['xx','x']");
30 shouldBe("regex2.exec('baaabaac')", "['baaabaac','ba',undefined,'abaac']");
33 shouldBe("regex3.exec('aaab')", "['aab','a','aab']");
36 shouldBe("regex4.exec('aaab')", "['aab','a','aab']");
39 shouldBe("regex5.exec('P11')", "['P11','1','1']");
42 shouldBe("regex6.exec('ababbbcbc')", "['ababb','bb','b']");
45 shouldBe("regex7.exec('xx')", "['xx','x']");
48 shouldBe("regex8.exec('xx')", "['xx','x','x']");
51 shouldBeNull("regex9.exec('xy')");
54 shouldBeNull("regex10.exec('xy')");
57 shouldBeNull("regex11.exec('xy')");
60 shouldBeNull("regex12.exec('x')");
61 shouldBe("regex12.exec('xx')", "['xx','x']");
62 shouldBe("regex12.exec('xxy')", "['xx','x']");
65 shouldBe("regex13.exec('xzzzx')", "['xzzzx','x']");
66 shouldBe("regex13.exec('xzzzxy')", "['xzzzx','x']");
69 shouldBe("regex14.exec('aabc')", "['aabc','a','bc']");
70 shouldBe("regex14.exec('aabcx')", "['aabc','a','bc']");
73 shouldBe("regex15.exec('aabc')", "['aabc','a','bc']");
74 shouldBe("regex15.exec('aabcx')", "['aabc','a','bc']");
77 shouldBeNull("regex16.exec('ab')");
78 shouldBe("regex16.exec('abc')", "['abc','bc']");
81 shouldBe("regex17.exec('ab')", "['a','ab']");
82 shouldBe("regex17.exec('abc')", "['a','ab']");
85 shouldBe("regex18.exec('x')", "['x','']");
86 shouldBe("regex18.exec('xx')", "['x','xx']");
87 shouldBe("regex18.exec('xxx')", "['x','xx']");
90 shouldBe("regex19.exec('x')", "['x','',undefined]");
91 shouldBe("regex19.exec('xx')", "['x','xx','xx']");
92 shouldBe("regex19.exec('xxx')", "['x','xx','xx']");
95 shouldBeNull("regex20.exec('x')");
96 shouldBe("regex20.exec('xx')", "['x','xx']");
97 shouldBe("regex20.exec('xxx')", "['x','xx']");
100 shouldBe("regex21.exec('aab')", "['aab']");
103 shouldBe("regex22.exec('55up')", "null");
106 shouldBe("regex23.exec('ax')", "null");
109 shouldBe("regex24.exec('x')", "null");