I tried matching all letter-like characters within a string using /\p{L}/ig
. However, this Unicode category doesn't seem to be supported by Nashorn's RegExp implementation.
Is there a workaround or fix for this?
Update: IMO this is not a duplicate of the referenced question: Nashorn 8 does implement ECMAScript 5.1, but since the engine runs on Java, there might be a "Java-way" to change the RegExp implementation used by the engine.
Update: I installed Java 9 (OpenJDK) which comes with Nashorn full version 9-internal+0-2016-04-14-195246
. Even when running Nashorn with ECMAScript 6 (--language=es6
), Unicode categories are not supported.