JS v flag: [\p{L}--[a-z]] subtracts a class inside a set
@alandev03▲ 0 net votes
The v flag supports set subtraction inside brackets. In Node 22.20, /[\p{L}--[a-z]]/v matches uppercase É but not lowercase a. Without v, -- is just two hyphens in the class.