RegExp,$* (1) : RegExp Object « Regular Expressions « JavaScript Tutorial






The RegExp,$* property reflects a multiline string search.

This is a Boolean, read-only value that reflects whether or not strings should be searched across multiple lines.

This is the same as using the multiline property.

<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">
    <textarea name="mytext" cols="60" rows="8" onChange='getinfo()'>
    Change me and click outside to see the result.
    </textarea>
    <br>
    </form>
    </body>
    </html>








26.7.RegExp Object
26.7.1.RegExp()
26.7.2.RegExp,$* (1)
26.7.3.RegExp.$& (2)
26.7.4.RegExp,$_ (3)
26.7.5.RegExp.$` (4)
26.7.6.RegExp.$' (5)
26.7.7.RegExp.$+ (6)
26.7.8.RegExp.$1,$2,..$9
26.7.9.RegExp.compile()
26.7.10.RegExp.exec()
26.7.11.RegExp.global
26.7.12.RegExp.ignoreCase
26.7.13.RegExp.input
26.7.14.RegExp.lastIndex
26.7.15.RegExp.lastMatch
26.7.16.RegExp.lastParen
26.7.17.RegExp.leftContext
26.7.18.RegExp.multiline
26.7.19.RegExp.rightContext
26.7.20.RegExp.source
26.7.21.RegExp.test()