multiline  RegExp  instance property JS Home  <<  JS Reference  <<  RegExp  <<  multiline

Description

Returns true if match each line flag set or false otherwise.

Syntax

Signature Description
aRegExp.multilineReturns true if match each line flag set or false otherwise.

Parameters

None.

Examples

The code below displays the multiline property of some RegExp instances.


var aRegExp = /\d/;
var bRegExp = /\d/m;
var flagValues = new Array(2);

flagValues[0] = 'aRegExp match each line set: ' + aRegExp.multiline + '\n';
flagValues[1] = 'bRegExp match each line set: ' + bRegExp.multiline;

alert(flagValues);

Press the button below to action the above code:

Related Tutorials

JavaScript Intermediate Tutorials - Lesson 9 - Regular Expressions