flags

Returns a string indicating the flags of the regular expression in question. This field is read-only. The characters in this string are sequenced and concatenated in the following order:

If no flags are set, the value is the empty string.

MDN Reference