RegExp.prototype.flags

A string indicating the flags of the regular expression. Read-only.

Syntax

flags

Examples

/[a-z]/gi.flags
"gi"
/[0-9]/.flags
""

See also