Name

multiline — NN 4 IE J3 ECMA n/a

Synopsis

Read/Write

If the search extends across multiple lines of text, the multiline property is set to true. A search through text in a TEXTAREA element, for example, is multiline. The short version is $*.

Example

if (RegExp.multiline) {
    ...
}

Value

Boolean.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.