Description
The multiline property specifies whether or not the 'm' modifier is set. The property returns true if the modifier is set, false otherwise.
This property has the form:
RegExpObject.multiline
Examples
The following example shows the basic use of this property.
<script>
var pattern=/Java/gi;
if (pattern.multiline)
{
document.write("m mod: set");
}
else
{
document.write("m mod: not set");
}
</script>
This produces the following result:
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|