1 This will test string.replace with {n, m} regexp patterns.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS "YY".replace(/Y{1,4}/g,"YYYY") is "YYYY"
7 PASS "MM".replace(/M{1,2}/g,"M") is "M"
8 PASS "YY".replace(/Y{1,4}/g,"MMMM") is "MMMM"
9 PASS successfullyParsed is true