RegExp.rightContext : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.rightContext







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);

    -->
    </script>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Regular Expressions
» RegExp Object