RegExp.$' (5) : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.$' (5)








The RegExp.$' property represents the substring following the most pattern match.

This is the same as using the rightContext property.












<html>
    <body>
    <script language="JavaScript">
    <!--
    pat = /is*/gi;

    var str = "This is a test.";
    myArray = pat.exec(str);
    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