blob: c09147af198c7c554f595401e6f00f73100b1b55 [file] [log] [blame]
ggaren@apple.com24abba82008-12-10 07:54:04 +00001This page tests assertions followed by quantifiers.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6
7Testing regexp: /(?=a){0}/gm
8PASS regexp.test('a') is true
9PASS regexp.lastIndex is 0
10
11Testing regexp: /(?=a){1}/gm
12PASS regexp.test('a') is true
13PASS regexp.lastIndex is 0
14
15Testing regexp: /(?!a){0}/gm
16PASS regexp.test('b') is true
17PASS regexp.lastIndex is 0
18
19Testing regexp: /(?!a){1}/gm
20PASS regexp.test('b') is true
21PASS regexp.lastIndex is 0
ggaren@apple.come1514732009-01-16 08:01:44 +000022PASS /^(?=a)?b$/.test("b") is true
ggaren@apple.com24abba82008-12-10 07:54:04 +000023PASS successfullyParsed is true
24
25TEST COMPLETE
26