The 'v' enables the ‘unicodeSets’ mode among other things. It is an improvement over the 'u' flag. Some of its features are not compatibable with the 'u' flag, so both flags cannot be used at the same time which results in an error. The 'v' flag supports extended character classes like –
- Unicode Properties Of Strings
- String Literal Syntax in Character Classes
- Unicode Character Classes In JavaScript Regex
- Set Operations like Intersection and Subtraction on Character Classes
- Improved case-insensitive matching