3

What's the best practice for determining if a browser supports the new regular expression features specified in the ECMAScript 2018 Language Specification?

I suspect you just have to write try catch statements or do it by detecting browser versions, but thought I check here first.

Lonnie Best
  • 9,936
  • 10
  • 57
  • 97
  • There are a couple of good answers [here](https://stackoverflow.com/questions/47374678/how-to-detect-ecmascript-version). – Wiktor Stribiżew Jan 02 '19 at 13:55
  • I thought I might find an example test on [caniuse](https://github.com/Fyrd/caniuse/issues/4704), but it doesn't seem like they're testing for named capture groups yet. – Lonnie Best Jan 04 '19 at 06:39

0 Answers0