RegExp.ignoreCase : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.ignoreCase







The ignoreCase property is a flag that informs the user if case is to be ignored during pattern matching or not.












<html>
    <body>
    <script language="JavaScript">
    <!--
    var myPat = new RegExp("is""i");

    var str = "This is a test";

    myArray = myPat.exec(str);
    document.write("The value of RegExp.ignoreCase is: " "<b>"+ myPat.ignoreCase + "</b>");
    -->
    </script>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Regular Expressions
» RegExp Object