X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

JavaScript multiline Property

RegExp Object Reference JavaScript RegExp Object

Example

Check whether or not the "m" modifier is set:

var str = "Visit W3Schools!";
var patt1 = /W3S/gi; // "g" and "i" is set, "m" is not.
var res = patt1.multiline;

The result of res will be:

false

Try it yourself »


Definition and Usage

The multiline property specifies whether or not the m modifier is set.

This property returns true if the "m" modifier is set, otherwise it returns false.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The multiline property is supported in all major browsers.


Syntax

RegExpObject.multiline

Return Value

Type Description
Boolean Returns true if the "m" modifier is set, false otherwise

Technical Details

JavaScript Version: 1.2


RegExp Object Reference JavaScript RegExp Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook