JavaScript RegExp multiline property

Definition and usage

mehrzeilig Property specifies whether the m modifier is set.

If the "m" modifier is set, this property returns true, otherwise return false.

Example

let text = "Visit CodeW3C.com!";
let pattern = /W3S/gi; // "g" and "i" are set, "m" is not.
let result = pattern.multiline;

Try it yourself

Syntax

regexp.multiline

Return value

Type Description
Boolean value If the "m" modifier is set, return true, otherwise return false.

Browser support

mehrzeilig Es ist eine ECMAScript1 (ES1)-Funktion.

Alle Browser unterstützen ES1 (JavaScript 1997) vollkommen:

Chrome IE Edge Firefox Safari Opera
Unterstützung Unterstützung Unterstützung Unterstützung Unterstützung Unterstützung