ects/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.dotAll

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

##  Try it

##  Description

` RegExp.prototype.dotAll ` has the value ` true ` if the ` s ` flag was used;
otherwise, ` false ` . The ` s ` flag indicates that the dot special character
( ` . ` ) should additionally match the following line terminator ("newline")
characters in a string, which it would not match otherwise:

  * U+000A LINE FEED (LF) ( ` \n ` ) 
  * U+000D CARRIAGE RETURN (CR) ( ` \r ` ) 
  * U+2028 LINE SEPARATOR 
  * U+2029 PARAGRAPH SEPARATOR 

This effectively means the dot will match any character on the Unicode Basic
Multilingual Plane (BMP). To allow it to match astral characters, the ` u `
(unicode) flag should be used. Using both flags in conjunction allows the dot
to match any Unicode character, without exceptions.

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

##  Examples

###  Using dotAll

js

    
    
    const str1 = "bar\nexample foo example";
    
    const regex1 = /bar.example/s;
    
    console.log(regex1.dotAll); // true
    
    console.log(str1.replace(regex1, "")); // foo example
    
    const str2 = "bar\nexample foo example";
    
    const regex2 = /bar.example/;
    
    console.log(regex2.dotAll); // false
    
    console.log(str2.replace(regex2, ""));
    // bar
    // example foo example
    

##  Specifications

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

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

##  See also

  * [ Polyfill of the ` dotAll ` flag in ` core-js ` ](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
  * [ ` RegExp.prototype.lastIndex ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)
  * [ ` 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_Obje