RegExp.multiline : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.multiline







The multiline property determines whether pattern matching should be performed across multiple lines.












<html>
    <body>
    <script language="JavaScript">
    <!--
    function getinfo(){
        var myPat = new RegExp("the""i");
        var str = document.form1.mytext.value;
        myArray = myPat.exec(str);
        alert("RegExp.$* is: " + RegExp.multiline);
    }
    -->
    </script>
    <form name="form1">
    <br><br>
    <textarea name="mytext" cols="60" rows="8" onChange='getinfo()'>
    Change me and click outside
    </textarea>
    <br>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Regular Expressions
» RegExp Object