问题
I often work with many human languages and writing systems and I try to use the most modern features of JavaScript that I can.
I often find I would like to use modern Unicode regular expression such as Unicode Property Escapes:
/\p{L}/
It seems that though many JS platforms are including more and more ES6 features, these Unicode regex features are lagging behind.
How can I found out which engines/platforms support which of these features? By "platform" I include things like transpilers.
I'm aware of the excellent XRegExp for a great workaround, but how can I monitor/track this support getting included natively in the various JS implementations?
I suppose something like Can I use might be what I'm looking for. But maybe something that tracks ES6 support, that tracks Unicode support, or that tracks regular expression support might also exist? Or maybe there are various bug reports and feature requests I can subscribe to?
回答1:
compat-table for RegExp_Unicode_Property_Escapes feature
Some related features
- u_flag
- u_flag,_case_folding
- s_flag .. (us combo ex)
回答2:
In lieu of a full centralized resource, here's the issue/feature trackers I've been able to locate so far at least for Unicode property escapes in regular expressions:
- Mozilla/Firefox - Bug 1361876 - Implement RegExp Unicode Property Escapes
- Microsoft/ChakraCore - [Feature] Implement RegExp Unicode property escapes #2969
- WebKit - Bug 172069 - Implement RegExp Unicode property escapes
- Google V8 - Issue 4743 - Implement unicode regexp property class
来源:https://stackoverflow.com/questions/46045426/how-can-i-find-out-which-javascript-engines-platforms-support-which-features-of