1 2 3 4 5 6 7 8
// Don't assert. "p".match(/(p)/); assertEq(RegExp.$1, "p"); assertEq(RegExp.$2, ""); "x\ny\n".replace(/(^\n*)/, ""); assertEq(RegExp.$1, ""); assertEq(RegExp.$2, "");