isUnicode property

bool isUnicode

Whether this regular expression is in Unicode mode.

In Unicode mode, UTF-16 surrogate pairs in the original string will be treated as a single code point and will not match separately. Otherwise, the target string will be treated purely as a sequence of individual code units and surrogates will not be treated specially.

In Unicode mode, the syntax of the RegExp pattern is more restricted, but some pattern features, like Unicode property escapes, are only available in this mode.


bool get isUnicode;