August 1999
Intermediate to advanced
1488 pages
72h 53m
English
RegExp,$*
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.
Listing 6.207 shows how to use RegExp,$* for pattern matching.
<html> <body> <script language="JavaScript"> <!–– Hide // function checks for the "the" expression. However, if // multiple lines are read, an alert box is displayed // indicating so. function getinfo(){ var myPat = new RegExp("the", "i"); var str = document.form1.mytext.value; myArray = myPat.exec(str); alert("RegExp.$* is: ... |
Read now
Unlock full access