<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>
|