The rightContext property represents the substring following the most recent pattern match.
<html>
<body>
<script language="JavaScript">
<!--
pat = /is*/gi;
var str = "This is a test";
myArray = pat.exec(str);
document.write("In the string: " + "<b>" + "Eat Drink and be Merry" + "</b><br><br>");
document.write("The RegExp.rightContext is: " + RegExp.rightContext);