e/Global_Objects/Object/constructor)
    2. [ ` Object.prototype.__proto__ ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) Deprecated 
  13. Methods 
    1. [ ` Object.prototype.__defineGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) Deprecated 
    2. [ ` Object.prototype.__defineSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__) Deprecated 
    3. [ ` Object.prototype.__lookupGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) Deprecated 
    4. [ ` Object.prototype.__lookupSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__) Deprecated 
    5. [ ` Object.prototype.hasOwnProperty() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)
    6. [ ` Object.prototype.isPrototypeOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf)
    7. [ ` Object.prototype.propertyIsEnumerable() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
    8. [ ` Object.prototype.toLocaleString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString)
    9. [ ` Object.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString)
    10. [ ` Object.prototype.valueOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf)

##  In this article

  * Try it 
  * Description 
  * Examples 
  * Specifications 
  * Browser compatibility 
  * See also 

#  RegExp.prototype.multiline

The **` multiline ` ** accessor property of [ ` RegExp ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) instances returns
whether or not the ` m ` flag is used with this regular expression.

##  Try it

##  Description

` RegExp.prototype.multiline ` has the value ` true ` if the ` m ` flag was
used; otherwise, ` false ` . The ` m ` flag indicates that a multiline input
string should be treated as multiple lines. For example, if ` m ` is used, ` ^
` and ` $ ` change from matching at only the start or end of the entire string
to the start or end of any line within the string.

The set accessor of ` multiline ` is ` undefined ` . You cannot change this
property directly.

##  Examples

###  Using multiline

js

    
    
    const regex = /foo/m;
    
    console.log(regex.multiline); // true
    

##  Specifications

Specification  
---  
[ ECMAScript Language Specification  
#  sec-get-regexp.prototype.multiline
](https://tc39.es/ecma262/multipage/text-processing.html#sec-get-
regexp.prototype.multiline)  
  
##  Browser compatibility

BCD tables only load in the browser  with JavaScript enabled. Enable
JavaScript to view data.

##  See also

  * [ ` RegExp.prototype.lastIndex ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)
  * [ ` RegExp.prototype.dotAll ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll)
  * [ ` RegExp.prototype.global ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global)
  * [ ` RegExp.prototype.hasIndices ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/hasIndices)
  * [ ` RegExp.prototype.ignoreCase ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase)
  * [ ` RegExp.prototype.source ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source)
  * [ ` RegExp.prototype.sticky ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky)
  * [ ` RegExp.prototype.unicode ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode)

##  Help improve MDN

Was this page helpful to you?

Yes  No

[ Learn how to contribute
](https://github.com/mdn/content/blob/main/CONTRIBUTING.md "This will take you
to our contribution guidelines on GitHub.") .

This page was last modified on  Sep 12, 2023  by  [ MDN contributors ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline/