How can I use Unicode-aware regular expressions in JavaScript?
For example, there should be something akin to \\w
that can match any code-point in Lette
If you are using Babel then Unicode support is already available.
I also released a plugin which transforms your source code such that you can write regular expressions like /^\p{L}+$/
. These will then be transformed into something that browsers understand.
Here is the project page of the plugin:
babel-plugin-utf-8-regex