A modifier overrides flag settings in a specific part of a regular expression. It can be used to enable or disable flags that change the meanings of certain regex Syntax elements. These flags are i, m, and s....the meanings of certain regex syntax elements. These flags are i...i , m , and s . Syntax regex (?flags1:pattern) (?flags1-flags2:pattern)...