RegExp dotAll
Examples
const pattern = /W3Schools/s;
let result = pattern.dotAll;
Try it Yourself »
const pattern = /W3Schools/
let result = pattern.dotAll;
Try it Yourself »
Description
The dotAll property returns true
if the s modifier is set in the expression.
Syntax
regexp.dotAll
Parameters
| NONE |
Return Value
| Type | Description |
|---|---|
| Boolean | true if the s modifier is set, otherwise false. |
Browser Support
regexp.dotAll is a JavaScript 2018 feature.
ES 2018 is supported in all modern browsers since June 2020:
| Chrome 63 |
Edge 79 |
Firefox 78 |
Safari 12 |
Opera 50 |
| Des 2017 | Jan 2020 | Jun 2020 | Sep 2018 | Jan 2018 |