RegExp.multiline (Property/static)

A regular expression attribute to control the scope of the pattern.

Availability:

ECMAScript edition - 3
JavaScript - 1.2
JScript - 5.5
Internet Explorer - 5.5
Netscape - 4.0
Netscape Enterprise Server - 3.0
Opera - 5
Property/method value type:Boolean primitive
JavaScript syntax:-RegExp.multiline = aBoolean
Argument list:aBooleanA switch to set the property true or false.

When you want the regular expression to apply to multiple lines separated by newline characters, this property should be set to true. When it is false the pattern is applied only to a single line.

Warnings:

Example code:

   RegExp.multiline = true;
   RegExp.multiline = false;

See also:RegExp object, RegExp pattern - attributes, RegExp pattern - position, RegExp.exec(), RegExp.test(), RegExp["$*"]

Cross-references:

ECMA 262 edition 3 - section - 15.10.7.4