← Back to release summary

RegExp v flag with set notation + properties of strings

Category
JavaScript
Type
Chromium catches up
Status
Enabled by default (Chrome 112)
Intent stage
Prepare to ship

Summary

Add set operations, string literals, nested classes and unicode properties of strings to regular expression character classes. Set operations and unicode properties of strings allow developers to create regular expressions matching strings with certain unicode characters with ease. E.g. /[\p{Script_Extensions=Greek}&&\p{Letter}]/v matches all greek letters.

Standards & signals

Samples: https://v8.dev/features/regexp-v-flag

View on chromestatus.com