RegExp.source : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.source







The source property represents the text being used for pattern matching.












<html>
    <body>
    <script language="JavaScript">
    <!--
    exp = new RegExp("is""g");
    str = "This is a test";
    myArray = exp.exec(str);

    document.write("The source is: " "<b>" + exp.source + "</b>");
    -->
    </script>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Regular Expressions
» RegExp Object