blob: c09147af198c7c554f595401e6f00f73100b1b55 [file] [log] [blame]
This page tests assertions followed by quantifiers.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Testing regexp: /(?=a){0}/gm
PASS regexp.test('a') is true
PASS regexp.lastIndex is 0
Testing regexp: /(?=a){1}/gm
PASS regexp.test('a') is true
PASS regexp.lastIndex is 0
Testing regexp: /(?!a){0}/gm
PASS regexp.test('b') is true
PASS regexp.lastIndex is 0
Testing regexp: /(?!a){1}/gm
PASS regexp.test('b') is true
PASS regexp.lastIndex is 0
PASS /^(?=a)?b$/.test("b") is true
PASS successfullyParsed is true
TEST COMPLETE