← Back to release summary

RegExp `dotAll` mode / `s` flag

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 62)
Intent stage
None

Summary

The new `s` flag for ECMAScript regular expressions makes `.` match any character, including line terminators.

Standards & signals

Docs: https://mathiasbynens.be/notes/es-regexp-proposals#dotAll https://developers.google.com/web/updates/2017/07/upcoming-regexp-features#dotall_flag

View on chromestatus.com