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:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
|