1 2 3 4 5 6 7 8
var res; for (var i = 0; i < 10; i++) { var re = /a(b)c/; var b = (re.exec(""), v = re.exec("abc")) !== null; assertEq(v[0], "abc"); assertEq(v[1], "b"); }