如何找出哪些JavaScript引擎/平台支持ES6 Unicode正则表达式的哪些功能? [英] How can I find out which JavaScript engines/platforms support which features of ES6 Unicode regular expressions?

查看:110
本文介绍了如何找出哪些JavaScript引擎/平台支持ES6 Unicode正则表达式的哪些功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用许多人类语言和编写系统,我尝试使用最现代的JavaScript功能。

I often work with many human languages and writing systems and I try to use the most modern features of JavaScript that I can.

我经常发现我想要使用现代Unicode正则表达式,例如Unicode Property Escapes:

I often find I would like to use modern Unicode regular expression such as Unicode Property Escapes:

/\p{L}/

虽然许多JS平台包含越来越多的ES6功能,但这些Unicode正则表达式功能仍然落后。

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.

我知道优秀的 XRegExp 提供了一个很好的解决方法,但我如何监控/跟踪这种支持本地包含在各种JS实现中?

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?

我想如下我可以使用可能是我正在寻找的。但也许跟踪ES6支持,跟踪Unicode支持或追踪正则表达式支持的东西也可能存在?或者也许我可以订阅各种错误报告和功能请求?

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?

推荐答案

compat-table

一些相关的功能

  • u_flag
  • u_flag,_case_folding
  • s_flag .. (us combo ex)

这篇关于如何找出哪些JavaScript引擎/平台支持ES6 Unicode正则表达式的哪些功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆