← Back to release summary

RegExp pattern modifiers

Category
JavaScript
Type
Chromium catches up
Status
No active development (Chrome No active development)
Intent stage
Start prototyping

Summary

This proposal adds the ability to locally toggle, in RegExps, the 's', 'm', 'i', and the future 'x' flags locally to a subexpression via the syntax `(?imsx-imsx:subexpr)`.

Standards & signals

Ecosystem

Explainers: https://github.com/tc39/proposal-regexp-modifiers/blob/main/README.md

View on chromestatus.com