Possible combinations of regular expression flags (with mandatory u flag).
u
Type union stricter than string type for RegExp flags. The unicode flag is mandatory to ensure unicode characters are always supported.
string
const flags1: RegularExpressionFlags = "u";const flags2: RegularExpressionFlags = "gu";const flags3: RegularExpressionFlags = "iu";const flags4: RegularExpressionFlags = "giu"; Copy
const flags1: RegularExpressionFlags = "u";const flags2: RegularExpressionFlags = "gu";const flags3: RegularExpressionFlags = "iu";const flags4: RegularExpressionFlags = "giu";
Regular Expressions
Possible combinations of regular expression flags (with mandatory
u
flag).Remarks
Type union stricter than
string
type for RegExp flags. The unicode flag is mandatory to ensure unicode characters are always supported.Example
See
Regular Expressions