setUnicodeECMAScriptDialect
setUnicodeECMAScriptDialect(enable: Boolean): JadeRegexPattern;
This fluent‑style method returns its own modified receiver, to allow call chaining. (By default, the Unicode ECMAScript is not enabled.)
Call the setUnicodeECMAScriptDialect method of the JadeRegexPattern class with the enable parameter set to true to enable the Unicode ECMA script dialect (JavaScript) for the pattern object.
When you enable the ECMAScript dialog:
-
\U matches an uppercase "U" character. By default, \U causes a compile‑time error.
-
\u matches a lowercase "u" character unless it is followed by four hexadecimal digits, in which case the hexadecimal number defines the code point to match. By default, \u causes a compile‑time error.
-
\x matches a lowercase "x" character unless it is followed by two hexadecimal digits, in which case the hexadecimal number defines the code point to match. By default, a hexadecimal number is always expected after \x, but it can have zero (0), one, or two digits.
The JadeRegexPattern object that is returned is populated with the updated Regex pattern.
2020.0.01 and higher