Home | History | Annotate | Download | only in regexp

Lines Matching refs:RegExp

33 	var TITLE   = 'RegExp: $&';
41 // 'foo'.match(/foo/); RegExp['$&']
43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp['$&']",
44 'foo', RegExp['$&']);
46 // 'foo'.match(new RegExp('foo')); RegExp['$&']
47 'foo'.match(new RegExp('foo'));
48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp['$&']",
49 'foo', RegExp['$&']);
51 // 'xxx'.match(/bar/); RegExp['$&']
53 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/bar/); RegExp['$&']",
54 'foo', RegExp['$&']);
56 // 'xxx'.match(/$/); RegExp['$&']
58 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/$/); RegExp['$&']",
59 '', RegExp['$&']);
61 // 'abcdefg'.match(/^..(cd)[a-z]+/); RegExp['$&']
63 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(/^..(cd)[a-z]+/); RegExp['$&']",
64 'abcdefg', RegExp['$&']);
66 // 'abcdefgabcdefg'.match(/(a(b(c(d)e)f)g)\1/); RegExp['$&']
68 testcases[count++] = new TestCase ( SECTION, "'abcdefgabcdefg'.match(/(a(b(c(d)e)f)g)\\1/); RegExp['$&']",
69 'abcdefgabcdefg', RegExp['$&']);