Quartz Composer JavaScript Reference © Cybero Designs  

multiline

Property Type (R)
Format object. Multiline Regular expression
Commentary

Indicates whether to ignore the line breaks. Whether or not to search in strings across multiple lines.You cannot change this property directly.The value of multiline is true if the "m" flag was used; otherwise, false. The "m" flag indicates that a multiline input string should be treated as multiple lines. For example, if "m" is used, "^" and "$" change from matching at only the start or end of the entire string to the start or end of any line within the string.
Sample code - QC 2 JavaScript
CR = String.fromCharCode (13);
LF = String.fromCharCode (10);
str = "RegExp Sample Text." + CR + LF + "String Match Test.";
reObj = new RegExp ( "S +", "g");
reObj.multiline = true;
result = str.match (reObj);
outputs [0] = "number of matches" + result.length + ". multiline flag:" + reObj.multiline;
Sample code - QC 3 JavaScript
function (__string outputNumber) main (__number inputNumber[2])
{
var result = new Object();
CR = String.fromCharCode(13);
LF = String.fromCharCode(10);
str = "RegExp Sample Text."+CR+LF+"String Match Test.";
reObj = new RegExp("S+","g");
reObj.multiline = true;
result = str.match(reObj);
result.outputNumber = "Number of matches"+result.length+"。multilineFlag:"+reObj.multiline;
return result;
}

Return to the Start Page