RegExp.lastParen : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.lastParen








The lastParen property represents the last parenthesized substring match.

It returns a string value for the last parenthesized substring.












<html>
    <body>
    <script language="JavaScript">
    <!--
    exp = new RegExp("(is)""g");
    str = "This is a test (is)";
    myArray = exp.exec(str);
    document.write("The RegExp.lastParen is: " "<b>" + RegExp.lastParen + "</b>");
    -->
    </script>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Regular Expressions
» RegExp Object